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>Adding expressions</title>
|
|
10 |
<link rel="stylesheet" type="text/css" href="../help.css">
|
|
11 |
</head>
|
|
12 |
|
|
13 |
<body>
|
|
14 |
|
|
15 |
<h1>Adding expressions</h1>
|
|
16 |
|
|
17 |
<p>You can add and view expressions in the Expressions view. The Expressions
|
|
18 |
view is part of the Debug perspective.</p>
|
|
19 |
|
|
20 |
<p>To add an expression:</p>
|
|
21 |
|
|
22 |
<ol>
|
|
23 |
<li>Select <b>Add Watch Expression</b> in the context menu of the Expressions view.</li>
|
|
24 |
<li>Type the expression that you want to evaluate. For example, (x-5)*3 .</li>
|
|
25 |
<li><p>Click <b>OK</b>.</p><p>The expression and its value appear in the
|
|
26 |
Expressions view. When the execution of a program is suspended, all expressions
|
|
27 |
are reevaluated.</p></li>
|
|
28 |
</ol>
|
|
29 |
|
|
30 |
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
|
31 |
<br>
|
|
32 |
<a href="../concepts/cdt_c_over_cdt.htm">C/C++ Development perspective</a><br>
|
|
33 |
</p>
|
|
34 |
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
|
|
35 |
<br>
|
|
36 |
<a href="cdt_o_debug.htm">Debugging</a></p>
|
|
37 |
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
|
|
38 |
<br>
|
|
39 |
<a href="../reference/cdt_o_dbg_view.htm">Debug views</a></p>
|
|
40 |
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
|
|
41 |
|
|
42 |
</body>
|
|
43 |
|
|
44 |
</html> |