Setting a line breakpoint

Line breakpoints are set on an executable line of a program.

To add a line breakpoint, complete these steps:

  1. In the editor area, open the file where you want to add the breakpoint.
  2. 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.
  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 concepts
Breakpoints
Related tasks
Using SQLJ breakpoints
Setting a method breakpoint
Setting a watchpoint
Viewing and configuring breakpoint properties
Enabling and disabling SQLJ breakpoints
Removing SQLJ breakpoints

Feedback