Setting a method breakpoint
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:
- Expand the list in the Packages pane until you see the method you want to set an method
breakpoint on.
- Right-click on that method and select Set Method breakpoint from the pop-up menu.
To set a method breakpoint from the Breakpoints menu:
- Select Breakpoints > Set Method from the menu bar.
This will invoke the Method breakpoint dialog.
- 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.
- In the Class entry field, choose or enter the class file that is associated with the package specified in the Package entry field.
- 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.
- If the class for the method you want to set a breakpoint is not currently loaded, click on the
Defer breakpoint check box.
- As optional parameters, set any conditional expressions that you need for the breakpoint.
- 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.

Breakpoints

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