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>Debug overview</title>
|
|
10 |
<link rel="stylesheet" type="text/css" href="../help.css">
|
|
11 |
</head>
|
|
12 |
|
|
13 |
<body>
|
|
14 |
|
|
15 |
<h1>Debug overview</h1>
|
|
16 |
|
|
17 |
<p>The debugger lets you see what's going on "inside" a program while it
|
|
18 |
executes.</p>
|
|
19 |
<p>In order to debug your application, you must use executables compiled for
|
|
20 |
debugging. These executables contain additional debug information that lets the
|
|
21 |
debugger make direct associations between the source code and the binaries
|
|
22 |
generated from that original source.</p>
|
|
23 |
<p>The CDT debugger uses GDB as the underlying debug engine. It translates each
|
|
24 |
user interface action into a sequence of GDB commands and processes the output from GDB to
|
|
25 |
display the current state of the program being debugged. </p>
|
|
26 |
<p><b>Tip:</b> Editing the source after compiling causes the line numbering to be out of
|
|
27 |
step because the debug information is tied directly to the source. Similarly,
|
|
28 |
debugging optimized binaries can also cause unexpected jumps in the execution
|
|
29 |
trace.</p>
|
|
30 |
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
|
31 |
<br>
|
|
32 |
<a href="cdt_c_over_cdt.htm">Overview of the CDT</a><br>
|
|
33 |
<a href="cdt_c_dbg_info.htm">Debug information</a></p>
|
|
34 |
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
|
|
35 |
<br>
|
|
36 |
<a href="../tasks/cdt_o_debug.htm">Debugging</a><br>
|
|
37 |
</p>
|
|
38 |
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
|
|
39 |
<br>
|
|
40 |
<a href="../reference/cdt_o_run_dbg_pages.htm">Run and Debug dialog box</a></p><p>
|
|
41 |
|
|
42 |
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" > </p>
|
|
43 |
|
|
44 |
</body>
|
|
45 |
|
|
46 |
</html> |