carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_debug_prog.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<meta name="ProgId" content="FrontPage.Editor.Document">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
<title>Debugging a program</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
<h1>Debugging a program</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
<p>You must create a debug launch configuration the first time you debug your 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
program.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
<p>To create a debug configuration:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
  <li>In  C/C++ Projects view, select a project. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
  <li>Click <b>Run &gt; Debug</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
  <li>In the Debug dialog box, select a debug configuration type from the <b>Configurations</b> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
  list.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
  <li><p>Click <b>New</b>.</p></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
  <li>In the <b>Name</b> box, type a descriptive name for this debug configuration.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
  <li>In the <b>Project</b> box, type the name of the project containing 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
        the application you want to debug.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
  <li>In the <b>C/C++ Application</b> box, type the name of the executable 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
        that you want to run.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
  <li>Click <b>Debug</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
  <p>The debug perspective is opened and the  application window opens on 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
  top. The C/C++ editor window is repositioned in the perspective.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
<p>For more information:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
<ul><li>To specify the 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
    execution arguments an application uses and the working directory for a run 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
    configuration, see <a href="cdt_t_run_arg.htm">Specifying execution arguments</a>.</li><li>To set the environment variables 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
    and values to use when an application runs, see <a href="cdt_t_run_env.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
    Setting environment variables</a></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
  <li>To select a debugger to use when debugging an application, see
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
  <a href="cdt_t_run_dbg.htm">Selecting a debugger</a></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
  <li>To specify the location of source files used when debugging a C or C++ 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
  application, see <a href="cdt_t_run_source.htm">Specifying the location of 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
  source files</a></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
  <li>To specify where the run configuration is stored, how you access it and 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
  what perspective to open when running an application, see
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
  <a href="cdt_t_run_com.htm">Specifying the location of the run configuration</a></li></ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
<p>To use a debug configuration:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
<p>You can reuse a previously created debug launch configuration to debug your 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
program.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
  <li>Click <b>Run &gt; Debug</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
  <li>In the Debug dialog box, select a debug configuration from the Configurations 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
  list.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
  <li>Click <b>Debug</b>. </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
<a href="../concepts/cdt_c_over_dbg.htm">Debug overview</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
<a href="../concepts/cdt_c_dbg_info.htm">Debug information</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
<a href="cdt_o_debug.htm">Debugging</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
<a href="../reference/cdt_o_run_dbg_pages.htm">Run and Debug dialog box</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    77
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    80
</html>