Clearing and disabling breakpoints (integrated debugger)

Once a breakpoint is set, you can remove it at any time, including while you are debugging the code it is in.  If you remove a breakpoint from a method while the thread it is in is suspended, the debugger does not drop to the top of the method.

To see a summary of all breakpoints in the workspace, go to the Breakpoints page of the Debugger browser by selecting Debug > Breakpoints from any Window menu.  Select a method in the list to see its source code and the breakpoints.

Clearing breakpoints
To clear a breakpoint in source code or in an external class method, double-click on its symbol bp.gif (843 bytes) in the margin of the Source pane.   You can remove breakpoints from any Source pane (not just the one in the Breakpoints page in the Debugger browser). 

However, if you are in the Breakpoints page, you can use the following toolbar buttons to clear breakpoints:

clearbp.gif (1029 bytes) Clears all breakpoints in the currently selected method; removes the method from the Breakpoints page.
clearallbp.gif (1045 bytes) Clears all breakpoints in the workspace.

Disabling breakpoints
Suppose you want to run a program that has breakpoints set throughout its code, but you do not want the debugger to open during the running. You can disable the breakpoints by clicking the Enable Breakpoints toolbar button so that is is in the "up" position, as shown: bp_off.gif (1006 bytes).  The IDE will ignore all the breakpoints it encounters.  (The debugger may still launch if an exception is thrown and not caught.)  All debugger symbols in the margin of Source panes will change colors from blue to gray.

To re-enable all the breakpoints in the workspace, click the Enable Breakpoints button so that it is in the "down" position, as shown: bp_on.gif (1002 bytes).

Clearing breakpoints on caught exceptions
To clear a breakpoint on a caught exception:

  1. Select the Caught Exceptions page in the Debugger browser.
  2. Remove a breakpoint on an exception by disabling its checkbox. 
  3. To remove breakpoints from all external methods or caught exceptions, click the Deselect All button nidxsnon.gif (1025 bytes).   To deselect an exception type and its subclasses, click the Deselect Including Subclasses button nidxdchd.gif (1042 bytes).

ngrelc.gif (533 bytes)
The integrated debugger

ngrelt.gif (466 bytes)
Setting breakpoints in source code
Setting breakpoints in external classes
Selecting exceptions for the debugger to catch