mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Added docs describing how to import and debug existing executables.
This commit is contained in:
parent
b3fa88e4c8
commit
95ffc3032a
8 changed files with 53 additions and 0 deletions
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.png
Normal file
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.png
Normal file
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.png
Normal file
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.png
Normal file
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes05.png
Normal file
BIN
doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes05.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.5 KiB |
|
@ -15,6 +15,7 @@
|
|||
<p>This section explains how to debug your project.</p>
|
||||
|
||||
<img src="../images/trans.gif" border="0" width="25" height="1" alt=""><a style="text-decoration:none" href="cdt_t_debug_prog.htm">Debugging a program</a><br>
|
||||
<img src="../images/trans.gif" border="0" width="25" height="1" alt=""><a style="text-decoration:none" href="cdt_t_debug_exes.htm">Debugging an existing executable</a><br>
|
||||
<img src="../images/trans.gif" border="0" width="25" height="1" alt=""><a style="text-decoration:none" href="cdt_o_brkpnts_watch.htm">Working with breakpoints and watchpoints</a><br>
|
||||
<img src="../images/trans.gif" border="0" width="50" height="1" alt=""><a style="text-decoration:none" href="cdt_t_add_brkpnts.htm">Adding breakpoints</a><br>
|
||||
<img src="../images/trans.gif" border="0" width="50" height="1" alt=""><a style="text-decoration:none" href="cdt_t_add_watch.htm">Adding watchpoints</a><br>
|
||||
|
|
51
doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm
Normal file
51
doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm
Normal file
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
|
||||
<title>Debugging Existing Executables</title>
|
||||
<link rel="stylesheet" type="text/css" href="../help.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Debugging an Existing Executable </h1>
|
||||
<p>Use the import feature to import and debug an executable you have already built. This feature will automatically create a project and debug configuration for you. This is helpful if you have an executable built with debug symbols but may not have the project used to build the executable. </p>
|
||||
|
||||
<h4>Importing Executables for Debugging </h4>
|
||||
<ol>
|
||||
<li>Select the File > Import... menu item
|
||||
to open the Import wizard dialog:
|
||||
<p align="center"><img src="../images/cdt_debug_exes01.png" width="476" height="430" hspace="12" vspace="12" /></p>
|
||||
</li>
|
||||
<li>Select C/C++ Executable, then click Next to open the Import Executable wizard.</li>
|
||||
<li>Enter the executable path in the Select Executable field or click Browse to locate the executable.</li>
|
||||
<p>Use Select Executable to choose a single executable or Search Directory to select one or more executables to import from the specified directory.</p>
|
||||
<p align="center"><img src="../images/cdt_debug_exes02.png" width="518" height="434" hspace="12" vspace="12" /></p>
|
||||
<p class="figure"><b>NOTE</b> You can import any executable, but only those built with debug symbols will be let you step through source code and see variable values. </p>
|
||||
<li>Click Next to see the Choose Project page</li>
|
||||
<p>Use the Choose Project page to create a new project (you can use the default name assigned) and debug configuration. You can import executables into a new project or an existing one. The new project is configured to hold the executable, but not to build anything. </p>
|
||||
<p align="center"><img src="../images/cdt_debug_exes03.png" width="518" height="434" hspace="12" vspace="12" /></p>
|
||||
<p class="figure">Select from the menu of launch configuration types to select one for debugging. This launch configuration will be created for you with default settings for debugging your executable. </p>
|
||||
<li>Click Finish</li>
|
||||
<p>The executable is added to the C/C++ Projects view and the Launch configuration window appears..</p>
|
||||
<p align="center"><img src="../images/cdt_debug_exes04.png" width="814" height="450" hspace="12" vspace="12" /></p>
|
||||
<li>Click Debug</li>
|
||||
<p>The debugger launches and you can begin debugging the executable. </p>
|
||||
<li>Setting breakpoints </li>
|
||||
<p>Expand the executable in the C++ Projects view to see the list of source files. Only executables built with debug symbols will show a list of source files. The source files can be opened in the editor so you can set breakpoints. Use these files only for debugging, you can not change them and rebuild the executable with this project. </p>
|
||||
<p><img src="../images/cdt_debug_exes05.png" alt="C++ Projects View" width="210" height="275" hspace="12" vspace="12" /></p>
|
||||
</ol>
|
||||
</div>
|
||||
<p><img border="0" src="../images/ngconcepts.gif" alt="Related concepts" width="143" height="21" /> <br />
|
||||
<a href="../concepts/cdt_c_over_dbg.htm">Debug overview</a><br />
|
||||
<a href="../concepts/cdt_c_dbg_info.htm">Debug information</a></p>
|
||||
<p><img border="0" src="../images/ngtasks.gif" alt="Related tasks" width="143" height="21" /> <br />
|
||||
<a href="cdt_o_debug.htm">Debugging</a></p>
|
||||
<p><img border="0" src="../images/ngref.gif" alt="Related reference" width="143" height="21" /> <br />
|
||||
<a href="../reference/cdt_o_run_dbg_pages.htm">Run and Debug dialog box</a></p>
|
||||
<h5> </h5>
|
||||
<div id="footer">Copyright Nokia Corporation and others 2006. </div>
|
||||
</body>
|
||||
</html>
|
|
@ -62,6 +62,7 @@
|
|||
</topic>
|
||||
<topic label="Debugging" href="tasks/cdt_o_debug.htm">
|
||||
<topic label="Debugging a program" href="tasks/cdt_t_debug_prog.htm"/>
|
||||
<topic label="Debugging an existing executable" href="tasks/cdt_t_debug_exes.htm"/>
|
||||
<topic label="Working with breakpoints and watchpoints" href="tasks/cdt_o_brkpnts_watch.htm">
|
||||
<topic label="Adding breakpoints" href="tasks/cdt_t_add_brkpnts.htm"/>
|
||||
<topic label="Adding watchpoints" href="tasks/cdt_t_add_watch.htm"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue