Setting a Line Breakpoint

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. If your version of the New Breakpoint dialog box includes the Debugger combo box, set the value 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 view of the Debugger window.

See also
Viewing the Source for a Line Breakpoint
Setting Breakpoints

Legal Notices