blob: 35194080ef3f8417dcc532873bbcd09ef4e280df [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2006. 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>
Applying Hit Counts
</title>
</head>
<body>
<h1>
Applying Hit Counts
</h1>
<p>
A hit count can be applied to line breakpoints, exception breakpoints, watchpoints and method breakpoints. When a hit count is applied to a breakpoint, the breakpoint
suspends execution of a thread the <em>n</em>th time it is hit, but never again, until it is re-enabled or the hit count is changed or disabled.
</p>
<p>
To set a hit count on a breakpoint:
</p>
<ol>
<li>
Select the breakpoint to which a hit count is to be added.
</li>
<li>
From the breakpoint's pop-up menu, select <strong><a href="../reference/views/breakpoints/ref-hitcount_contextaction.htm">Hit Count</a></strong>. </li>
<li>
In the <strong>Enter the new hit count for the breakpoint</strong> field, type the number of times you want to hit the breakpoint before suspending
execution.<br>
<br>
<strong>Note:</strong> When the breakpoint is hit for the <em>n</em>th time, the thread that hit the breakpoint suspends. The breakpoint is disabled until either it is
re-enabled or its hit count is changed.
</li>
</ol>
<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/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="../tasks/task-set_method_breakpoints.htm">Setting method breakpoints</a>
</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>
</p>
</body>
</html>