IntelliJ IDEA 2017.2 Help

Enabling, Disabling and Removing Breakpoints

On this page:

Toggling 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 disabled breakpoint 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:
      breakpointDisable.png
    • Right-click the desired breakpoint icon, select or deselect the <breakpoint name> enabled check box, and then clickDone.
      breakpointDisable1
    • 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 disabled breakpoint.

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

Enabling a temporarily disabled breakpoint in the editor

To enable a temporarily disabled breakpoint in the editor

When you enable a temporarily disabled breakpoint, its icon changes from disabled breakpoint 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> check box in the pop-up dialog box that opens, and then clickDone.
    • With the Alt key pressed, click the breakpoint icon.

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

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

Removing a breakpoint

To remove a breakpoint

To remove a breakpoint permanently, do one of the following:

Removing all breakpoints of a certain type

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: 29 November 2017

See Also