Use the toolbar buttons to add or remove breakpoints, and group them by package, file or class.
The options depend on the selected breakpoint type:
Types of breakpoints
Select this option to enable breakpoints. If a breakpoint is disabled, WebStorm will skip it during the debugging process.
Select this checkbox to suspend program when a breakpoint is hit. If the checkbox is not selected, the program is not suspended.
| Select this checkbox and specify a condition for hitting the breakpoint. |
A condition is a Boolean expression.
This expression should be valid at the line where the breakpoint is set, and is evaluated every time the breakpoint is reached. If the evaluation result is
If the result is
Log to console
| Select if you want to log the following events to console: |
Evaluate and log
Select this checkbox if you wish to evaluate a certain expression at this breakpoint and to export the result to the console output. Press Shift+Enter to open the multiline editor.
Remove once hit
Select if you want the breakpoint to be deleted after it was hit.
Disable until breakpoint is hit
|From the drop-down list, select the breakpoint in question. The None option corresponds to the always enabled breakpoint. |
Besides that, you can also choose the behavior of this breakpoint, when the selected one is hit:
Context menu commands
Speed search of a breakpoint
To find a particular breakpoint
- Start typing address or description of the target breakpoint.
WebStorm highlights the line with the matching address or description.