carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_variables.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>Working with variables</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>Working with variables</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>During a debug session, you can display variable types, and change 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
or disable variable values.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
<p>To display variable type names:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
  <li>In Variables view, click the <b>Show Type Names</b> toggle button.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
<p>To change a variable value while debugging:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
<p>During a debug, you can change the value of a variable to test how your 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
program handles a particular value or to speed through a loop.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
  <li>In Variables view, right-click a variable, and select <b>Change Value</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
  <li>Type a value.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
<p>To disable a variable value while debugging:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
<p>You can disable a variable so that the debugger does not read the variable's 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
value from the target. This is useful if the target is very sensitive or the 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
variable is specified as volatile.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
<ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
  <li>In Variables view, right-click a variable, and select <b>Disable</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
</ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
<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
    47
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
<a href="../concepts/cdt_c_over_cdt.htm">C/C++ Development perspective</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
<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
    51
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
<a href="cdt_o_debug.htm">Debugging</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
<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
    54
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
<a href="../reference/cdt_o_dbg_view.htm">Debug views</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
<p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
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>