After you have created and built your Visual J++ project, you can set breakpoints in your code. A breakpoint designates a location in your code at which the code temporarily stops executing so that you step through your code line by line, examining variable values, examining application behavior. Where a bug occurs in your application, you can set a breakpoint that enables you to halt your program just before the unexpected behavior occurs.
To set a breakpoint and start the debugger
A solid red circle is placed in the margin of the editor indicating a breakpoint was set on the statement you just selected.
The program runs and stops (breaks) just before it executes the line on which you’ve set the breakpoint. The yellow arrow in the margin indicates the next statement to be executed.
When your program is in break mode, you can:
To resume the debugging session
—or—
Press the keyboard shortcut, F5 to run to the next breakpoint.
—or—
Press F11 to step into the next statement.
To end the debugging session
See Ending a Debugging Session for more information about how to end a debug session.