If you need to troubleshoot an Ant script, or you just would like a tool to help you make sense of a working script, you can use the IDE's Ant Debugger module. The module essentially plugs into the IDE's visual debugging framework, provides most of the debugging features you are used to for Java files, and applies those features to Ant scripts. For example, you can
Figure 16-1. Ant Debugger
To start debugging a build script:
The program counter goes to the line where the target is declared and stops. Then you can step through the target with any of the normal debugging commands. |