Setting a line breakpoint in a JSP
Line breakpoints are set on an executable line of a program.
To add a line breakpoint, do the following:
In the editor area, open the file where you want to add the breakpoint. Do one of the following:
- 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 appears 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.
Related tasks
Removing JSP breakpoints