Setting method breakpoints

 

Method breakpoints are set on a method in a program.

 

  1. In the editor area, open the file where you want to add the breakpoint.
  2. Directly to the left of the line where you want to add the breakpoint, select Add/Remove Method Breakpoint.  A breakpoint appears in the marker bar for the method that was selected.
  3. While the breakpoint is enabled, thread execution suspends when the method is entered, before any line in the method is executed.

 

Method breakpoints can also be setup to break on method exit.  In the Breakpoints view, select the breakpoint and toggle the Exit item in its context menu.

 

Method breakpoints can be removed, enabled, and disabled just like line breakpoints.

 

Related concepts

Breakpoints and watchpoints

General debugging support and Eclipse integration

 

Related tasks

Running and debugging

Breakpoints

Adding breakpoints

Removing breakpoints

Enabling and disabling breakpoints

Setting watchpoints