Setting a line breakpoint in a JSP file

A line breakpoint causes the execution of a thread to suspend at the location where the breakpoint is set. Line breakpoints are set on an executable line of a program.

To add a line breakpoint, complete these steps:

  1. If you are setting a breakpoint prior to debugging, open the file where you want to add the breakpoint. If you are setting a breakpoint during a debug session, the source file will be opened in the editor automatically.
  2. Perform one of the following tasks:
    1. 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 Breakpoints from the pop-up menu.
    2. Double-click the marker bar directly to the left of the line where you want to add the breakpoint.
  3. 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.

Related tasks
Removing JSP file breakpoints

Feedback