Skip to main content
summaryrefslogtreecommitdiffstats
blob: 0302356be5762c42d5cfc1e8743eca12abe8c7d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Working with variables</title>
<link rel="stylesheet" type="text/css" href="../help.css">
</head>

<body>

<div role="main"><h1>Working with variables</h1>

<p>During a debug session, you can display variable types, and change 
or disable variable values.</p>

<p>To display variable type names:</p>

<ul>
  <li>In Variables view, click the <strong>Show Type Names</strong> toggle button.</li>
</ul>

<p>To change a variable value while debugging:</p>

<p>During a debug, you can change the value of a variable to test how your 
program handles a particular value or to speed through a loop.</p>

<ol>
  <li>In Variables view, right-click a variable, and select <strong>Change Value</strong>.</li>
  <li>Type a value.</li>
</ol>

<p>To disable a variable value while debugging:</p>

<p>You can disable a variable so that the debugger does not read the variable's 
value from the target. This is useful if the target is very sensitive or the 
variable is specified as volatile.</p>

<ul>
  <li>In Variables view, right-click a variable, and select <strong>Disable</strong>.</li>
</ul>

<p><img src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
<br>
<a href="../concepts/cdt_c_over_cdt.htm">C/C++ Development perspective</a><br>
</p>
<p><img src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
<br>
<a href="cdt_o_debug.htm">Debugging</a></p>
<p><img src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
<br>
<a href="../reference/cdt_o_dbg_view.htm">Debug views</a></p>

<p>
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >

</div></body>

</html>

Back to the top