blob: 417047faee7e16d324b8797375fcc21d0be90f76 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. 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 <strong>Outline View</strong>, 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 <a href="../reference/views/breakpoints/ref-breakpoints_view.htm"><strong>Breakpoints View</strong></a>. 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.&nbsp;
</li>
</ol>
<p>Method breakpoints can also be setup to break on method exit.&nbsp; In the Breakpoints view, select the breakpoint and toggle the
<strong><a href="../reference/views/breakpoints/ref-exit_contextaction.htm">Exit</a></strong>&nbsp; item in its context menu.</p>
<p>Method breakpoints can be <a href="../reference/views/breakpoints/ref-remove_viewaction.htm">removed</a>, <a href="../reference/views/breakpoints/ref-enable_contextaction.htm">enabled</a>, and <a href="../reference/views/breakpoints/ref-disable_contextaction.htm">disabled</a> just like line
breakpoints.</p>
<h3 class="related">Related concepts</h3>
<a href="../concepts/cbrkpnts.htm">Breakpoints</a>
<h3 class="related">Related tasks</h3>
<a href="../tasks/task-add_line_breakpoints.htm">Adding breakpoints</a><br>
<a href="../tasks/task-remove_line_breakpoints.htm">Removing breakpoints</a><br>
<a href="../tasks/task-enable_disable_breakpoints.htm">Enabling and disabling breakpoints</a><br>
<a href="task-apply_hit_count.htm">Applying hit counts</a><br>
<a href="task-catching_exceptions.htm">Catching Java exceptions</a>
<h3 class="related">Related references</h3>
<a href="../reference/views/breakpoints/ref-breakpoints_view.htm">Breakpoints view</a><br>
<a href="../reference/views/ref-view-outline.htm">Java outline</a>
</body>
</html>