Setting a method breakpoint

ngjava.gif (225 bytes)Restriction: This is supported for Java only.

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

To set a method breakpoint from the Packages pane:

  1. Expand the list in the Packages pane until you see the method you want to set an method breakpoint on.
  2. Right-click on that method and select Set Method breakpoint from the pop-up menu.

To set a method breakpoint from the Source menu:

  1. Select Source > Set Method Breakpoint from the menu bar.
  2. Enter the name of the method you want to debug in the Method entry field in the Method Breakpoint dialog. If this method is loaded, you can select it from the pulldown list in the Method entry field.
  3. If the Method you chose in the Method pulldown list is not currently loaded, click on the Defer breakpoint check box.
  4. Set any optional parameters that you want for the breakpoint.
  5. Click OK to set the breakpoint and dismiss the Method Breakpoint dialog. Alternatively, use the Set button to set the breakpoint without dismissing the Method Breakpoint dialog.

To set a method breakpoint from the Breakpoints menu:

  1. Select Breakpoints > Set Method from the menu bar.
  2. Enter the name of the executable you want to debug in the Executable entry field in the Method Breakpoint dialog. If this executable to be debugged 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.
  5. Enter the name of the method you want to debug in the Method entry field in the Method Breakpoint dialog. If this method is loaded, you can select it from the pulldown list in the Method entry field.
  6. Set any optional parameters that you want for the breakpoint.
  7. Click OK to set the breakpoint and dismiss the Method Breakpoint dialog. Alternatively, use the Set button to set the breakpoint without dismissing the Method Breakpoint dialog.

ngrelc.gif (533 bytes)
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