Setting a line breakpoint

You can set line breakpoints from the Source pane, the Source menu and the Breakpoints menu.

To set a line breakpoint in the Source pane:

  1. On AIX and Windows 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 Source menu:

  1. Select Source > Set Line Breakpoint from the menu bar.
  2. Enter the name of the module or routine in which you want to set a breakpoint in the Executable 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 entry field.
  3. Choose or enter the object, class or source file that is associated with the module or routine specified in the Executable entry field and contains the line where the breakpoint is to be set from the Source pulldown list.
  4. Choose the source file containing the code for the object or class file from the Include File 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 entry field is not currently loaded, click on the Defer breakpoint check box.
    ngjava.gif (225 bytes) This check box is not available when debugging interpreted Java.
  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.

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 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 entry field.
  3. Choose or enter the object, class or source file that is associated with the module or routine specified in the Executable entry field and contains the line where the breakpoint is to be set from the Source pulldown list.
  4. Choose the source file containing the code for the object or class file from the Include File 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 entry field is not currently loaded, click on the Defer breakpoint check box.
    ngjava.gif (225 bytes) This check box is not available when debugging interpreted Java.
  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
ngaix.gif (307 bytes)ngwin.gif (301 bytes)Modifying breakpoint properties
Enabling and disabling breakpoints
Deleting a breakpoint
Viewing breakpoints