Setting a Breakpoint on a Line

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 Add Breakpoint dialog box.

To set a line breakpoint using the Source Editor:

Tip Clicking Toggle Breakpoint buttonin the toolbar or pressing Shift-F8 also sets and removes breakpoints on the current line.

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

  1. Click in the line in the Source Editor.
  2. From the main window, choose Debug and choose Add Breakpoint (Ctrl-Shift-F8).
  3. In the Add Breakpoint dialog box, select Line from the Breakpoint Type combo box.
  4. Specify the breakpoint settings:
  5. Specify the actions to take when the breakpoint is hit:
  6. Click OK.

    The breakpoint is added to the Breakpoints view of the Debugger window.

See also
Line Breakpoint Properties
Setting a Breakpoint on a Method Name
Setting a Breakpoint on an Exception
Setting a Breakpoint on a Class
Setting a Breakpoint on a Thread
Setting a Breakpoint on a Variable

Legal Notices