Line breakpoints are set on an executable line of JavaScriptâ„¢.
To add a line breakpoint, complete the following steps:
- In the editor area, open the file to the location of the JavaScript where
you want to add the breakpoint.
- Depending on the editor that you are using, perform one of the
following tasks:
- Right-click the marker bar (the vertical bar to the left of the main text
area) directly to the left of the line where you want to add the breakpoint
and select Add Breakpoint from the pop-up menu.
- Double-click the marker bar directly to the left of the line where you
want to add the breakpoint. If a breakpoint is already set on the line, then
the breakpoint will be removed. If there is no breakpoint on the line, then
the breakpoint will be created.
- A new line breakpoint marker is displayed in both the Breakpoints view
and on the marker bar (directly to the left of the line where you added the
breakpoint).
When a breakpoint is enabled, execution suspends before that line
of code is executed. The line where the breakpoint was set is highlighted
in the editor.