Line breakpoints are set on an executable line of a program.
To add a line breakpoint:
- In the editor area, open the file where you want to add
the breakpoint.
- 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 Toggle 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, thread execution suspends
before that line of code is executed. The debugger selects the thread
that has suspended and displays the stack frames on that thread's
stack. The line where the breakpoint was set is highlighted in the
editor.