core/com.nokia.carbide.cpp.doc.user/html/tasks/debugger/work_debug_act_start.htm
changeset 401 939a4e7e4597
parent 400 9b005a8e6778
child 402 ad8d147e8273
equal deleted inserted replaced
400:9b005a8e6778 401:939a4e7e4597
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
       
     2 <html>
       
     3 <head>
       
     4 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
       
     5 <meta http-equiv="Content-Style-Type" content="text/css" />
       
     6 <meta name="LASTUPDATED" content="06/17/05 11:09:43" />
       
     7 <title>Starting the Debugger</title>
       
     8 <link rel="StyleSheet" href="../../../book.css" type="text/css"/>
       
     9 </head>
       
    10 <body bgcolor="#FFFFFF">
       
    11 <h2>Starting the Debugger</h2>
       
    12 <p>Use the <b>Debug</b> command (<img src="../../images/icons/btn_debug.png" width="17" height="16" align="absmiddle" />) to begin debugging  a compiled program. The debugger takes control of program execution, starting at the main entry point of the program. When starting the debugger for the first time, there are two types of debug launch configurations that you can choose between: </p>
       
    13 <ul>
       
    14   <li><b>Debug As &gt; Symbian OS Application</b>  <em>&#8212; </em> select this option to create a new debug <a href="../../projects/launch/launch_configs_overview.htm">launch configuration</a> for the project or run the the first debug launch configuration it finds in the debug launch configuration list (starting at the top of the list). Basically, this is a shortcut to help you start debugging immediately.</li>
       
    15   <li><b>Open Debug Dialog... </b><em>&#8212; </em>enables you to define one or more <a href="../projects/prj_debug_config.htm">launch configurations</a> for this project.</li>
       
    16 </ul>
       
    17 <p>In the following steps, <i>Config_Name</i> refers to both debug launch configuration types. </p>
       
    18 <div class="step">
       
    19     <h4>Starting the Debugger </h4>
       
    20     <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.</p>
       
    21     <ul>
       
    22       <li>Right-click the project's EXE file in the C/C++ Projects view and select Debug As &gt; <em>Config_Name</em> from the C/C++ Projects contextual menu</li>
       
    23       <p>or</p>
       
    24       <li>Select the project to debug and click the Debug button (<img src="../../images/icons/btn_debug.png" width="17" height="16" align="absmiddle" />) in the C/C++ perspective</li>
       
    25     </ul>
       
    26     <blockquote>
       
    27       <p class="note"><b>NOTE</b> If you don't see the Debug button on your EXE file you'll need to define a <a href="../projects/prj_debug_config.htm">Configuration</a> for the program.</p>
       
    28       <p>or</p>
       
    29     </blockquote>
       
    30     <ul>
       
    31       <li>Select the project to debug and then select Run &gt; Debug As &gt; <em>Config_Name</em> from the  menu bar </li>
       
    32       <p>The current routine executes and returns to its caller, then program execution stops</p>
       
    33     </ul>
       
    34 </div>
       
    35 <p class="note"><b>NOTE</b> Some projects require additional configuration before the debugging session can begin. The IDE might prompt you for permission to perform this configuration automatically.</p>
       
    36   <p>For more information on debugging, see <b>C/C++ Development User Guide &gt; Tasks &gt; Running and debugging projects &gt; Debugging</b>.</p>
       
    37   <h5>Related references</h5>
       
    38   <ul>
       
    39     <li><a href="../../concepts/working_with_debugger.htm">Working with the Debugger </a></li>
       
    40     <li><a href="../../reference/view_debug.htm">Debug View</a></li>
       
    41   </ul>
       
    42   <div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
       
    43 
       
    44 </body>
       
    45 </html>