| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title> |
| Setting method breakpoints |
| </title> |
| </head> |
| <body> |
| <h1> |
| Setting method breakpoints |
| </h1> |
| <p> |
| Method breakpoints are used when working with types that have no source |
| code (binary types). |
| </p> |
| <ol> |
| <li> |
| Open the class in the Outline view, and select the method where you want to add a method breakpoint. |
| </li> |
| |
| <li> From the method's pop-up menu, select <strong>Toggle Method Breakpoint</strong>. |
| </li> |
| <li> |
| 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. |
| </li> |
| <li> |
| While the breakpoint is enabled, thread execution suspends when the method is entered, before any line in the method is executed. |
| </li> |
| </ol> |
| <p>Method breakpoints can also be setup to break on method exit. In the Breakpoints view, select the breakpoint and toggle the |
| <strong>Exit</strong> item in its context menu.</p> |
| <p>Method breakpoints can be removed, enabled, and disabled just like line |
| breakpoints.</p> |
| <p> |
| <img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br> |
| <a href="../concepts/cbrkpnts.htm">Breakpoints</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br> |
| <a href="../tasks/tasks-144.htm">Adding breakpoints</a><br> |
| <a href="../tasks/tasks-144a.htm">Removing breakpoints</a><br> |
| <a href="../tasks/tasks-144b.htm">Enabling and disabling breakpoints</a><br> |
| <a href="../tasks/tasks-146.htm">Applying hit counts</a><br> |
| <a href="../tasks/tasks-147.htm">Catching Java exceptions</a><br> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelr.png" alt="Related reference" ><br> |
| <a href="../reference/views/breakpoints/ref-breakpoints_view.htm">Breakpoints view</a><br> |
| <a href="../reference/ref-view-outline.htm">Java outline</a> |
| </p> |
| |
| </body> |
| </html> |
| |