Debugging an Ant Script
See Also
You can run an Ant script in the IDE's debugger like you would a Java class.
Debugging an Ant script is handy when you need to diagnose a problem in the
Ant script's execution or examine how the script works.
To debug an Ant script:
- Right-click the Ant script node in the Projects window, Files window, or
Favorites window and choose any target from the Debug Target menu.
When you start debugging an Ant script, the IDE opens the Debugger windows,
goes to the first line of the target, and stops. You can do all of the following:
- Use the Step Into (F7), Step Over (F8), Step Out (Ctrl-F7) commands
to go through the Ant script one line at a time.
- View the values of instantiated properties in the Local Variables window.
- Set a watch on a property by choosing Run > New Watch (Ctrl-Shift-F7).
- Set a line breakpoint by clicking in the Source Editor's left margin and
use the Continue (F5) command to run the Ant script to the line.
- Set a conditional breakpoint by choosin Run > New
Breakpoint (Ctrl-Shift-F8).
- See the hierarchy of nested calls in the Call Stack window.
- See Also
- Running an Ant Script
- Setting a Java Breakpoint
- Stepping Through Your Program
Legal Notices