carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/concepts/cdt_c_brkpnts.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<title>Breakpoints</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
<h1>Breakpoints</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
<p>A breakpoint suspends the execution of a program at the location where the breakpoint is set.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
To set a line breakpoint, right-click in the marker bar area on the left side of an editor beside
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
the line where you want the program to be suspended, then choose <b>Toggle Breakpoint</b>. You can 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
also double-click on the marker bar next to the source code line. A new breakpoint marker appears 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
on the marker bar, directly to the left of the line where you added the breakpoint. Also, the new 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
breakpoint appears in the Breakpoints view list.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
<p>Once set, a breakpoint can be enabled and disabled by right-clicking on its icon or by
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
right-clicking on its description in the <b>Breakpoints</b> view.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
<li>When a breakpoint is enabled, it causes the program to suspend whenever it is hit. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
Enabled breakpoints are indicated with a blue  
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
<img src="../images/icon_breakpoint_obj.gif" alt="enabled breakpoint" border="0"> circle. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
Enabled breakpoints that are successfully installed 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
are indicated with a checkmark overlay.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
<li>When a breakpoint is disabled, it will not affect the execution of the program. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
Disabled breakpoints are indicated with a white 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
<img src="../images/icon_breakpoint_disable.gif" alt="disabled breakpoint" border="0"> circle.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
<img border="0" src="../images/add_breakpoint.png" ALT="Editor view with cursor highlighting breakpoint" width="453" height="335">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
<p><b>Note: </b>Execution will also suspend 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
if <b>Stop at main() on startup</b> is enabled
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
on the <b>Launch Configuration</b> dialog.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
To access the <b>Launch Configuration</b> dialog,
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
from the menu bar choose <b>Run > Debug</b>.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
<hr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
<a href="../reference/cdt_o_views.htm">Run menu</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
<a href="../reference/cdt_o_views.htm">Breakpoints view</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
<p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
<img src="../images/rh03_04.gif" ALT="Red Hat Statement"><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
</html>