Removing breakpoints

From the Breakpoints view, you can delete single breakpoints, multiple breakpoints, or all breakpoints. You can also delete a single breakpoint from the editor. If you delete a breakpoint, all information on it is lost. If you do not want a breakpoint to stop execution, but want to keep information about the breakpoint, disable the breakpoint instead of deleting it. For information on disabling breakpoints, see the related topic below.

To delete a single breakpoint in the Breakpoints view:

    Do one of the following:

    • Right-click on the breakpoint you want to delete and select Remove from the pop-up menu.

    • Select the breakpoint you want to delete and click the Remove Selected Breakpoints push button in the Breakpoints view or press the Delete key.

    The breakpoint disappears from the Breakpoints view and from the editor marker bar.

To delete multiple breakpoints in the Breakpoints view:

  1. In the Breakpoints view, select the breakpoints you want to delete by left-clicking and using either the Shift keyboard key or the Ctrl keyboard key.

  2. Do one of the following:

    • Right-click the selection of breakpoints and select Remove from the pop-up menu.

    • Click the Remove Selected Breakpoints push button in the Breakpoints view.

  3. The breakpoints disappear from the Breakpoints view and from the editor marker bar.

To delete a breakpoint in the editor:

  1. In the editor marker bar, locate and right-click the breakpoint that you want to delete.

  2. Choose Toggle Breakpoints from the pop-up menu.

  3. The breakpoint disappears from the marker bar and from the Breakpoints view.

To delete all breakpoints: in the Breakpoints view, select Remove All from the pop-up menu or click the Remove All Breakpoints push button in the Breakpoints view.

Note:

  • If you want to delete all breakpoints, keep in mind that the Breakpoints view Remove All Breakpoints actions delete all breakpoints in the entire workbench, not just in the active program.

  • To avoid affecting breakpoints that are not related to your debug session, you can use the filter by debug target action. For information about this action, see the Using Breakpoints topic below.

 

Related concepts

Breakpoints

 

Related tasks

Using breakpoints
Setting a line breakpoint
Enabling and disabling breakpoints
Editing and viewing source while debugging
Halting a running program