blob: 4d05bbdb4a347477dacdf116b08c2982f4d595df [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, 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>
Adding breakpoints
</title>
</head>
<body>
<h1>
Adding breakpoints
</h1>
<p>
Line breakpoints are set on an executable line of a program.
</p>
<ol>
<li>
In the editor area, open the file where you want to add the breakpoint.
</li>
<li> Directly to the left of the line where you want to add the breakpoint,
open the marker bar (vertical ruler) pop-up menu and select <strong>Toggle
Breakpoint.</strong>&nbsp;&nbsp; You can also double-click on the marker bar
next to the source code line.&nbsp; A new breakpoint marker appears on the
marker bar, directly to the left of the line where you added the breakpoint.
Also, the new breakpoint appears in the Breakpoints view list. </li>
</ol>
<p>
While the breakpoint is enabled, thread execution suspends before that line of code is executed. The debugger selects
the thread that has suspended and displays the thread's stack
frames. The line where the breakpoint was set is highlighted in the editor in the Debug perspective.
</p>
<p>
<img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br>
<a href="../concepts/concepts-10.htm">Debugger</a><br>
<a href="../concepts/concepts-5.htm">Java perspectives</a><br>
<a href="../concepts/concepts-7.htm">Java editor</a><br>
</p>
<p>
<img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br>
<a href="../tasks/tasks-146.htm">Applying hit counts</a><br>
<a href="../tasks/tasks-147.htm">Catching Java exceptions</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-144c.htm">Managing conditional breakpoints</a><br>
<a href="../tasks/tasks-145.htm">Setting method breakpoints</a><br>
<a href="../tasks/tasks-136.htm">Stepping through the execution of a program</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>