Setting method breakpoints

Method breakpoints can be set on methods of binary types.

  1. Open the class in the Outline view, and select the method where you want to add a method breakpoint.

  2. From the method's pop-up menu, select Add/Remove Method Breakpoint.

  3. A breakpoint appears in the Breakpoints view. If source exists for the class, then a breakpoint also appears in the marker bar in the file's editor for the method that was selected.

  4. While the breakpoint is enabled, thread execution suspends when the method is entered, before any line in the method is executed. The breakpoint can be set to break on exit as well. In the Breakpoints view, select the breakpoint and from the context menu toggle the Exit item.

To remove the breakpoint, do one of the following:

Related concepts

Breakpoints

Related tasks

Adding breakpoints
Removing breakpoints
Enabling and disabling breakpoints
Applying hit counts
Catching Java exceptions
 

Related reference

Breakpoints view
Outline view for Java

 
 Copyright IBM Corporation 2000, 2002. All Rights Reserved.