Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Java Development User Guide
Previous Page Home Next Page

Setting Method Breakpoints

Method breakpoints are used when working with types that have no source code (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 Toggle 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. 

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

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

Related reference
Breakpoints view
Java outline

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire