Enabling and disabling breakpoints
Rather than deleting a breakpoint, you can disable it so that it does not stop program execution. When a breakpoint is enabled, it will cause all threads to suspend whenever it is hit. When a breakpoint is disabled, it will not cause threads to suspend. Breakpoints can be added, deleted, enabled, or disabled while your application is running.
About this task
When you disable a breakpoint, it remains in the Breakpoints view. To have your program stop on a breakpoint that you have disabled, select and enable it. The advantage of disabling a breakpoint instead of deleting it is that you do not have to find the location in the source to set the breakpoint again. In addition, a disabled breakpoint saves any extra settings in the breakpoint.
There are two indicators to the left of a set breakpoint. To the far left is a check box indicating whether the breakpoint is enabled. Enabled breakpoints are indicated with a check mark in this check box, while disabled breakpoints are indicated with no check mark in the check box. When a breakpoint is disabled, you can choose Enable from its pop-up menu in the Breakpoints view or editor (where the menu item is Enable Breakpoint). When a breakpoint is enabled, you can choose Disable from its pop-up menu.
Enabling and Disabling Breakpoints from the Breakpoints View
To enable or disable a single breakpoint from the Breakpoints view:
Procedure
Enabling and Disabling Breakpoints from the Editor
To enable or disable a single breakpoint from the editor:
Procedure
Disabling all breakpoints
To disable all breakpoints:
Procedure
- Click the Skip All Breakpoints toggle
button. This will temporarily disable all breakpoints.
- To re-enable all breakpoints except those that you specifically disabled with the Disable Breakpoint action, click the Skip All Breakpoints toggle button again.