5
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
2 |
<html lang="en">
|
|
3 |
|
|
4 |
<head>
|
|
5 |
<meta http-equiv="Content-Language" content="en-us">
|
|
6 |
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
|
|
7 |
<meta name="ProgId" content="FrontPage.Editor.Document">
|
|
8 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
9 |
<title>Working with variables</title>
|
|
10 |
<link rel="stylesheet" type="text/css" href="../help.css">
|
|
11 |
</head>
|
|
12 |
|
|
13 |
<body>
|
|
14 |
|
|
15 |
<h1>Working with variables</h1>
|
|
16 |
|
|
17 |
<p>During a debug session, you can display variable types, and change
|
|
18 |
or disable variable values.</p>
|
|
19 |
|
|
20 |
<p>To display variable type names:</p>
|
|
21 |
|
|
22 |
<ul>
|
|
23 |
<li>In Variables view, click the <b>Show Type Names</b> toggle button.</li>
|
|
24 |
</ul>
|
|
25 |
|
|
26 |
<p>To change a variable value while debugging:</p>
|
|
27 |
|
|
28 |
<p>During a debug, you can change the value of a variable to test how your
|
|
29 |
program handles a particular value or to speed through a loop.</p>
|
|
30 |
|
|
31 |
<ol>
|
|
32 |
<li>In Variables view, right-click a variable, and select <b>Change Value</b>.</li>
|
|
33 |
<li>Type a value.</li>
|
|
34 |
</ol>
|
|
35 |
|
|
36 |
<p>To disable a variable value while debugging:</p>
|
|
37 |
|
|
38 |
<p>You can disable a variable so that the debugger does not read the variable's
|
|
39 |
value from the target. This is useful if the target is very sensitive or the
|
|
40 |
variable is specified as volatile.</p>
|
|
41 |
|
|
42 |
<ul>
|
|
43 |
<li>In Variables view, right-click a variable, and select <b>Disable</b>.</li>
|
|
44 |
</ul>
|
|
45 |
|
|
46 |
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
|
47 |
<br>
|
|
48 |
<a href="../concepts/cdt_c_over_cdt.htm">C/C++ Development perspective</a><br>
|
|
49 |
</p>
|
|
50 |
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
|
|
51 |
<br>
|
|
52 |
<a href="cdt_o_debug.htm">Debugging</a></p>
|
|
53 |
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
|
|
54 |
<br>
|
|
55 |
<a href="../reference/cdt_o_dbg_view.htm">Debug views</a></p>
|
|
56 |
|
|
57 |
<p>
|
|
58 |
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
|
|
59 |
|
|
60 |
</body>
|
|
61 |
|
|
62 |
</html> |