A method breakpoint suspends execution when the method
that it applies to is entered or exited (or both).
You can set method breakpoints from the Outline view
or the editor. Once set, you can view and configure the properties
of a method breakpoint.
To add a method breakpoint from the
editor, place the cursor in the method and select Run >
Toggle Method Breakpoint from the workbench menu bar.
If a breakpoint is already set for the method, then the breakpoint
will be removed. If there is no breakpoint for the method, then the
breakpoint will be created. Once the breakpoint is created, a new
method breakpoint marker is displayed in the Breakpoints view.
To add a method breakpoint from the Outline view:
- Locate and select the method in the view.
- Perform one of the following tasks:
- Right-click the method and select Toggle Method Breakpoint from
the pop-up menu.
- Choose Run > Toggle Method Breakpoint from
the workbench menu bar.
- If a breakpoint is already set for the method, then the
breakpoint will be removed. If there is no breakpoint for the method,
then the breakpoint will be created. Once the breakpoint is created,
a new method breakpoint marker is displayed in the Breakpoints view.
Note: When you select a method in the editor or Outline view,
the Run > Toggle Method Breakpoint workbench
menu item is only available while the view or editor is in focus.