Setting a line breakpoint

Line breakpoints can be set from either of the following:

To set a line breakpoint in the Source pane:

  1. Ensure the Source pane is set to source view. To set the Source pane to a source view, select Source > Source View.
  2. Make sure the appropriate line is visible in the Source pane by using the scroll bar or cursor keys to locate the line.
  3. Do one of the following:

To set a line breakpoint from the Breakpoints menu:

  1. Select Breakpoints > Set Line from the menu bar.
  2. 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.
  3. 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.
  4. 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.)
  5. Enter the line number within the source file where you want to place a breakpoint in the Line entry field
  6. 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.
  7. Set any optional parameters that you want for the breakpoint.
  8. 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.

ngjava.gif (225 bytes)When debugging your interpreted Java program, the debugger will ignore breakpoints set on static initializers, static blocks and try statements.

[Related Concepts]
Breakpoints

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