Enabling and Disabling Breakpoints

Breakpoints can be enabled and disabled as needed. 

When a breakpoint is enabled, thread execution suspends before that line of code is executed.  The debugger selects the thread that has suspended and displays the thread's stack frames. The line where the breakpoint was set is highlighted in the code editor. 

When a breakpoint is disabled, thread execution is not suspended by the presence of the breakpoint.

 To disable a breakpoint

  1. In the Properties view, click into the line where the breakpoint is set.

  2. Press Ctrl+J (Mac OS: Cmd+J) to open code editor. The code editor will be opened with the line of code corresponding to the one selected in the Properties highlighted. 

  3. Right-click (Mac OS: Ctrl+click) the breakpoint you want to disable in the marker bar (vertical ruler) and select Disable Breakpoint from the popup menu. The breakpoint image will change to a white circle and its checkbox in the Breakpoints view will be empty.

 To enable a breakpoint

  1. In the Properties view, click into the line where the breakpoint is set.

  2. Press Ctrl+J (Mac OS: Cmd+J) to open code editor. The code editor will be opened with the line of code corresponding to the one selected in the Properties highlighted. 

  3. Right-click (Mac OS: Ctrl+click) the breakpoint you want to enable in the marker bar (vertical ruler) and select Enable Breakpoint from the popup menu. The breakpoint image will change to a blue circle and its checkbox in the Breakpoints view will be checked.


Related topics

 Breakpoints

Removing breakpoints