1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 177262, more docs for Import Executable Wizard.

This commit is contained in:
Ken Ryall 2007-05-15 16:59:29 +00:00
parent bc1789f41e
commit 37f1aca1c0
6 changed files with 54 additions and 24 deletions

View file

@ -17,6 +17,8 @@
<!ENTITY signalsView "Signals view">
<!ENTITY debugPrefs "Debug preferences">
<!ENTITY srcPrefs "Source Code Locations">
<!ENTITY importExe "Import C/C++ Executable Files">
<!ENTITY chooseProj "Choose Project">
]>
<contexts>
@ -73,4 +75,17 @@
<topic href="reference/cdt_u_dbg_src.htm"
label="&srcPrefs;"/>
</context>
<context id ="IMPORT_EXECUTABLE_PAGE_ONE">
<description>Select or search for C/C++ executable files.</description>
<topic href="tasks/cdt_t_debug_exes.htm"
label="&importExe;"/>
</context>
<context id ="IMPORT_EXECUTABLE_PAGE_TWO">
<description>Choose or create a project to hold the executable.</description>
<topic href="tasks/cdt_t_debug_exes.htm"
label="&chooseProj;"/>
</context>
</contexts>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View file

@ -6,6 +6,9 @@
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
<title>Debugging Existing Executables</title>
<link rel="stylesheet" type="text/css" href="../help.css"/>
<style>
ul, li { padding: 3px 0px}
</style>
</head>
<body>
@ -15,29 +18,41 @@
<h4>Importing Executables for Debugging </h4>
<ol>
<li>Select the File &gt; 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>
<li>Select the <b>File &gt; Import...</b> menu item.
<li>In the <b>Import</b> wizard dialog, click <b>C/C++</b> and select <b>C/C++ Executable</b>.<br>
<p><img src="../images/cdt_debug_exes01.png" vspace="12" /></p></li>
<li>Click <b>Next</b>.</li>
<li>In the <b>Import C/C++ Executable Files</b> page of the <b>Import Executable</b> dialog:<br>
<ul>
<li>Choose a parser from the <b>Select binary parser</b> list.</li>
<li>Type the executable path in the <b>Select executable</b> box or click <b>Browse</b> to locate the executable.</li>
<li>Type or click <b>Browse</b> to enter a directory path in the <b>Search directory</b> box, then select one or more executables from the <b>C/C++ Executable Files</b> list.</li>
</ul>
<p><img src="../images/cdt_debug_exes02.png" vspace="12" />
<p><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>
<li>Click <b>Next</b>.</li>
<li>In the <b>Choose Project</b> page of the <b>Import Executable</b> dialog:<br>
<ul>
<li>To import as a new project, activate <b>New project name</b> and type the project name.
<li>To import into an existing project, activate <b>Existing project</b> and click <b>Search</b>.</li>
<li>To add a launch configuration, activate <b>Create a Launch Configuration</b> and select the configuration from the list, then type a name into the <b>Name</b> box.</li>
</ul>
<p><img src="../images/cdt_debug_exes03.png" vspace="12" />
</li>
<li>Click <b>Finish</b>.<br>
<p>The executable is added to the <b>C/C++ Projects</b> view.</p></li>
<li>If <b>Create a Launch Configuration</b> was activated, the <b>Debug</b> dialog appears.<br>
<p><img src="../images/cdt_debug_exes04.png" vspace="12" /></p>
</li>
<li>Click <b>Debug</b>.<br>
<p>The debugger launches and you can begin debugging the executable.</p></li>
</ol>
<h3>Setting breakpoints </h3>
<p>Expand the executable in the <b>C++ Projects</b> 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" vspace="12" /></p>
<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>
@ -45,7 +60,7 @@
<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>&nbsp;</h5>
<div id="footer">Copyright Nokia Corporation and others 2006. </div>
<hr>
<img src="../images/NokiaCopyrightStatement06.png" alt="Nokia Copyright Statement" />
</body>
</html>