1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_brkpnts.htm

62 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Breakpoints</title>
<link rel="stylesheet" type="text/css" href="../help.css">
</head>
<body>
<h1>Breakpoints</h1>
<p>A breakpoint suspends the execution of a thread at the location where the breakpoint is set.
To set a breakpoint, right-click in the frame on the left side of an editor beside
the line where you want the breakpoint, then choose <span class="guilabel">Add Breakpoint</span>.
</p>
<p>Once set, a breakpoint can be enabled and disabled by right-clicking on its icon or by
right-clicking on its description in the <b>Breakpoints</b> view.
</p>
<ul>
<li>When a breakpoint is enabled, it causes a thread to suspend whenever it is hit.
Enabled breakpoints are indicated with a blue
<img src="../images/icon_breakpoint_obj.gif" alt="enabled breakpoint" border="0"> circle.
Enabled breakpoints that are successfully installed
are indicated with a checkmark overlay.</li>
<li>When a breakpoint is disabled, it will not cause threads to suspend.
Disabled breakpoints are indicated with a white
<img src="../images/icon_breakpoint_disable.gif" alt="disabled breakpoint" border="0"> circle.<br>
<img border="0" src="../images/add_breakpoint.png" ALT="Editor view with cursor highlighting breakpoint" width="453" height="335">
</li>
</ul>
<p>Debugging breakpoints are displayed in the marker bar in the editor area
and in the <b>Breakpoints</b> view.
</p>
<p class="note"><span class="notetitle">Note: </span>Execution will also suspend
if <span class="guilabel">Stop at main() on startup</span> is enabled
on the <span class="guilabel">Launch Configuration</span> dialog.
To access the <span class="guilabel">Launch Configuration</span> dialog,
from the menu bar choose <span class="guilabel">Run > Debug</span>.
</p>
<hr>
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
<br>
<a href="../reference/cdt_o_views.htm">Run menu</a><br>
<a href="../reference/cdt_o_views.htm">Breakpoints view</a>
</p>
<p>
<img src="../images/rh03_04.gif" ALT="Red Hat STatement" BORDER=0 width="300" height="14"><br>
<img src="../images/ng03_04.gif" ALT="IBM STatement" BORDER=0 width="324" height="14">
</p>
</body>
</html>