CLion 2018.2 Help

Enabling, Disabling and Removing Breakpoints

To toggle between the enabled and disabled state of a breakpoint

When you temporarily disable or enable a breakpoint, its icon changes from db set breakpoint to icons debugger db disabled breakpoint svg and vice versa.

  1. Place the caret at the desired line with a breakpoint.

  2. Do one of the following:
    • On the main menu, choose Run | Toggle Breakpoint Enabled.

    • Right-click the desired breakpoint icon, select or deselect the <breakpoint name> enabled checkbox, and then clickDone.

    • Alt -click on the breakpoint icon.

Disabling a breakpoint temporarily in the editor

When you temporarily disable a breakpoint, its icon changes from db set breakpoint to icons debugger db disabled breakpoint svg.

Alternatively, open the Breakpoints dialog box, as described on page Accessing Breakpoint Properties, select the desired breakpoint, and clear the checkbox next to it or the Line <line number> in <file name> checkbox in the right-hand pane.

To enable a temporarily disabled breakpoint in the editor

When you enable a temporarily disabled breakpoint, its icon changes from icons debugger db disabled breakpoint svg to db set breakpoint.

  1. Place the caret at the desired line with a breakpoint.

  2. Do one of the following:
    • Right-click the desired breakpoint icon, select the Line <line number> in <file name> checkbox in the pop-up dialog box that opens, and then clickDone.

    • With the Alt key pressed, click the breakpoint icon.

Alternatively, open the Breakpoints dialog box, as described on page Accessing Breakpoint Properties, select the desired breakpoint, and select the checkbox next to it or the Line <line number> in <file name> checkbox in the right-hand pane.

To remove a breakpoint

To remove all breakpoints of a certain type

  1. On the main menu, chooseRun | View Breakpoints, or pressCtrl+Shift+F8.

  2. In the Breakpoints dialog, press the left arrow key to select the desired category.

  3. PressDelete.

    All breakpoints of a certain type will be deleted.

Last modified: 27 November 2018

See Also