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