To debug an application:
- Select
the desired file in the Filesystems window.
- Do one
of the following:
- Choose
Debug > Step Into (F7) to execute the first line in the
application in the debugger and pause. Keep pressing F7 to step
through the program one line at a time.
- Open
the file in the Source Editor. Then click in the left margin on
any line to enter a breakpoint on that line. Choose Debug > Start
Session > Run in Debugger (Alt-F5) to execute the application
in the debugger up to the line containing the breakpoint.
- Open
the file in the Source Editor. Then place the insertion point on
any line and choose Debug > Run to Cursor (F4) to execute the
application in the debugger up to the line with the cursor.
The IDE starts
executing your program in debug mode and stops at the specified line.
The debugger windows at the bottom of the IDE display debugging information.
For additional debugging windows, choose Window > Debugging.
For a more
detailed explanation of debugging Java applications in the IDE, see Using
NetBeans IDE - Debugging Java Programs.
|