carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/concepts/cdt_c_dbg_info.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 name="GENERATOR" content="Microsoft FrontPage 5.0">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<meta name="ProgId" content="FrontPage.Editor.Document">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
<title>Debug information</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
<h1>Debug information</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
<p>The <b>Debug</b> perspective lets you manage the debugging or running of a program 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
in the Workbench. You can control the execution of your program by setting 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
breakpoints, suspending launched programs, stepping through your code, and 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
examining the contents of variables.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
<p>&nbsp;The <b>Debug</b> perspective displays the following information:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
  <li>The stack frame for the suspended threads 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
for each target that you are debugging</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
  <li>Each thread in your program represented as a node in the tree</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
  <li>The process for each program that you are running</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
<p>The <b>Debug</b> perspective also drives the <b>C/C++ Editor</b>. As you step 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
through your program, the <b>C/C++ Editor</b> highlights the location of the 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
execution pointer. </p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
<h2>Variables</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
<p>You can view information about the variables in a selected stack frame in the 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
Variables view. When execution stops, the changed values are 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
by default highlighted in red. Like the other debug-related views, the Variables view does 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
not refresh as you run your executable. A refresh occurs when execution stops.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
<h2>Expressions</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
<p>An expression is a snippet of code that can be evaluated to produce a result. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
The context for an expression depends on the particular debug model. Some 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
expressions may need to be evaluated at a specific location in the program so 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
that the variables can be referenced. You can view information about expressions 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
in the Expressions view.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
<h2>Registers</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
<p>You can view information about the registers in a selected stack frame. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
Values that have changed are highlighted in the Registers view when your program 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
stops.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
<h2>Memory</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
<p>You can inspect and change your process memory.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
<h2>Disassembly</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
<p>You can view disassembled code mixed with source information.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
<h2>Modules</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
<p>You can view information about the modules (executables and shared libraries) loaded 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
in the current debug session.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
<h2>Signals</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
<p>You can view the signals defined on the selected debug target and how the 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
debugger handles each one.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
<a href="cdt_c_over_cdt.htm">Overview of the CDT</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
<a href="cdt_c_over_dbg.htm">Debug overview</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    77
<a href="../tasks/cdt_o_debug.htm">Debugging</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
&nbsp;</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
<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
    80
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    81
<a href="../reference/cdt_o_run_dbg_pages.htm">Run and Debug dialog box</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    82
<a href="../reference/cdt_o_dbg_view.htm">Debug views</a></p><p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    83
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    84
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" > </p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    85
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    86
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    87
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    88
</html>