Setting a Line Breakpoint

See Also

You can set a simple breakpoint on a specified line from within the Source Editor. If you want to specify an action to perform when the breakpoint is hit or trigger the breakpoint only when a specified condition is met, use the New Breakpoint dialog box.

To set a line breakpoint using the Source Editor:

To set a line breakpoint using the New Breakpoint dialog box:

(The following instructions are specific to the Java 2 debugger.)

  1. From the main menu, choose Debug and choose New Breakpoint (Ctrl-Shift-F8).
  2. Set the Debugger combo box to Java.
  3. Set the Breakpoint Type to Line.
  4. Specify the breakpoint settings.
  5. Specify the actions to take when the breakpoint is triggered:
  6. Click OK.

    The breakpoint is added to the Breakpoints window.

See Also
Viewing the Source for a Line Breakpoint
Breakpoints in the IDE

Legal Notices Legal Notices