Setting a line breakpoint
Line breakpoints can be set from either of the following:
To set a line breakpoint in the Source pane:
- Ensure the Source pane is set to source view.
To set the Source pane to a source view, select Source > Source View.
- Make sure the appropriate line is visible in the Source pane by using the scroll bar or
cursor keys to locate the line.
- Do one of the following:
- Double-click on the line number in the prefix area of the line.
- Right-click on the line you want to set a breakpoint on, and select Set
Breakpoint from the pop-up menu.
To set a line breakpoint from the Breakpoints
menu:
- Select Breakpoints > Set Line from the menu bar.
- Enter the name of the module or routine in which you want to set a breakpoint in the
Executable or Package entry field in the Line Breakpoint dialog. If this module or routine is loaded,
you can select it from the pulldown list in the Executable or Package entry field.
- Choose or enter the object, class or source file that is associated with the module or
routine specified in the Executable or Package
entry field and contains the line
where the breakpoint is to be set from the Object pulldown list.
- Choose the source file containing the code for the object or class file from the
Source pulldown list. (This step is optional if you have not selected to defer the
breakpoint.)
- Enter the line number within the source file where you want to place a breakpoint in the
Line entry field
- If the module or routine you entered in the Executable or Package
entry field is
not currently loaded, click on the Defer breakpoint check box.
- Set any optional parameters that you want for the breakpoint.
- Click OK to set the breakpoint and dismiss the Line Breakpoint dialog.
Alternatively, use the Set button to set the breakpoint without
dismissing the Line Breakpoint dialog.
When
debugging your interpreted Java program, the debugger will ignore breakpoints set on
static initializers, static blocks and try
statements.
![[Related Concepts]](../images/ngrelc.gif)
Breakpoints

Setting multiple breakpoints
Setting a conditional breakpoint
Modifying breakpoint properties
Enabling and disabling breakpoints
Deleting a breakpoint
Viewing breakpoints