core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_04.htm
changeset 1934 4f0cd256d26c
parent 1933 a77f12f0a631
child 2087 617a89f9dffc
equal deleted inserted replaced
1933:a77f12f0a631 1934:4f0cd256d26c
    14     <li><a href="new_proj_from_template_02.htm">Building</a> the object code based on the project sources</li>
    14     <li><a href="new_proj_from_template_02.htm">Building</a> the object code based on the project sources</li>
    15     <li><a href="new_proj_from_template_03.htm">Defining</a> a launch configuration for running or debugging the application</li>
    15     <li><a href="new_proj_from_template_03.htm">Defining</a> a launch configuration for running or debugging the application</li>
    16     <li><strong>Launching and debugging an executable using the Carbide debugger</strong></li>
    16     <li><strong>Launching and debugging an executable using the Carbide debugger</strong></li>
    17 </ol>
    17 </ol>
    18 <hr>
    18 <hr>
    19 <p class="note"><b>NOTE</b> You can only debug compiled programs. Use the <a href="../projects/prj_build.htm">Build Project</a> command to compile project sources into a binary file if you do not already have an executable in the project. A symbolics (<span class="code">.sym</span>) file is also required for debugging on a target device. Ensure that a <span class="code">.sym</span> file has been created. If you are importing an existing application, you may have to rebuild the application and create a related <span class="code">.sym</span> file. Make sure a <span class="code">.sym</span> file has been created in the output directory.</p>
    19 <p class="note"><b>NOTE</b> You can only debug compiled programs. Use the <a href="../../reference/pref_carb_symbian_sdk.htm">Build Project</a> command to compile project sources into a binary file if you do not already have an executable in the project. A symbolics (<span class="code">.sym</span>) file is also required for debugging on a target device. Ensure that a <span class="code">.sym</span> file has been created. If you are importing an existing application, you may have to rebuild the application and create a related <span class="code">.sym</span> file. Make sure a <span class="code">.sym</span> file has been created in the output directory.</p>
    20 <div class="step">
    20 <div class="step">
    21     <h4><strong></strong>Launching and debugging an executable</h4>
    21     <h4><strong></strong>Launching and debugging an executable</h4>
    22     <ol>
    22     <ol>
    23         <li>Select the project to debug in the Project Explorer view.<br />
    23         <li>Select the project to debug in the Project Explorer view.<br />
    24         	<p>For this example you should choose the HelloWorld project created in <a href="new_proj_from_template_01.htm">Step 1</a> of this tutorial.</p>
    24         	<p>For this example you should choose the HelloWorld project created in <a href="new_proj_from_template_01.htm">Step 1</a> of this tutorial.</p>
    30         <li>Launch the debug session.<br />
    30         <li>Launch the debug session.<br />
    31             <p>To run the project on the chosen target and start a debug session use one of the following actions. Clicking Debug is the most common choice as it enables you to assume control of the executable should you encounter a problem.</p>
    31             <p>To run the project on the chosen target and start a debug session use one of the following actions. Clicking Debug is the most common choice as it enables you to assume control of the executable should you encounter a problem.</p>
    32             <ul>
    32             <ul>
    33                 <li>Right-click the project and choose Debug As &gt; Debug Symbian OS Application on Emulator.</li>
    33                 <li>Right-click the project and choose Debug As &gt; Debug Symbian OS Application on Emulator.</li>
    34                 <li>Click the Run &gt; Debug (<span class="code">F11</span>) menu item.</li>
    34                 <li>Click the Run &gt; Debug (<span class="code">F11</span>) menu item.</li>
    35                 <li>Click the Debug (<img src="../projects/images/icon_debug.png" alt="Debug icon" width="17" height="17" align="absmiddle">) icon in the toolbar.</li>
    35                 <li>Click the Debug (<img src="../../reference/pref_carb_symbian_sdk.htm" alt="Debug icon" width="17" height="17" align="absmiddle">) icon in the toolbar.</li>
    36             </ul>
    36             </ul>
    37             <p>The emulator is launched and the <a href="../../reference/perspective_debug.htm">Debug</a> perspective appears to manage the debug session.</p>
    37             <p>The emulator is launched and the <a href="../../reference/perspective_debug.htm">Debug</a> perspective appears to manage the debug session.</p>
    38         </li>
    38         </li>
    39         <li>Click the Options soft-menu and select any menu option to hit the breakpoint set in Step 2. <br />
    39         <li>Click the Options soft-menu and select any menu option to hit the breakpoint set in Step 2. <br />
    40         	<p><img src="../images/debugging_project_04.png" alt="Select menu option" width="360" height="397"></p>
    40         	<p><img src="../images/debugging_project_04.png" alt="Select menu option" width="360" height="397"></p>