Setting a method breakpoint

ngjava.gif (225 bytes) Restriction: This section only applies to debugging interpreted Java programs.

You can set method breakpoints from the Packages pane 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 Breakpoints menu:

  1. Select Breakpoints > Set Method from the menu bar. This will invoke the Method breakpoint dialog.
  2. In the Package entry field, enter the name of the package which contains the class in which you want to set a Method breakpoint. You can also select the package from the pulldown list in the Package entry field.
  3. In the Class entry field, choose or enter the class file that is associated with the package specified in the Package entry field.
  4. Enter the name of the method you want to debug in the Method entry field in the Method Breakpoint dialog. You can also select the method from the pulldown list in the Method entry field.
  5. If the class for the method you want to set a breakpoint is not currently loaded, click on the Defer breakpoint check box.
  6. As optional parameters, set any conditional expressions that you need 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
Modifying breakpoint properties
Enabling and disabling breakpoints
Deleting a breakpoint
Viewing breakpoints