|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
|
2 <html lang="en"> |
|
3 |
|
4 <head> |
|
5 <meta http-equiv="Content-Language" content="en-us"> |
|
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
7 <title>Selecting an application to run or debug</title> |
|
8 <link rel="stylesheet" type="text/css" href="../help.css"> |
|
9 |
|
10 </head> |
|
11 |
|
12 <body> |
|
13 |
|
14 <h1>Selecting an application to run or debug</h1> |
|
15 |
|
16 <p>You need to specify the project or program that you want to run or debug for |
|
17 this run configuration.</p> |
|
18 |
|
19 <p>To select an application to run:</p> |
|
20 |
|
21 <ol> |
|
22 <li>In the C/C++ Projects view, select a project.</li> |
|
23 <li>Click <b>Run > Run</b> or <b>Run > Debug</b>.</li> |
|
24 <li>In the <b>Configurations</b> box, expand <b>C/C++ Local</b>.</li> |
|
25 <li>Select a run or debug configuration.</li> |
|
26 <li>Click the <b>Main</b> tab.<br> |
|
27 <img src="../images/run_config.png" alt="Run Configuration Window"> |
|
28 </li> |
|
29 <li>Do the following: |
|
30 <ul><li>In the <b>Name</b> box, type a descriptive name for this new a |
|
31 descriptive name for this launch configuration.</li> |
|
32 <li>In the <b>Project</b> box, type the name of the project containing |
|
33 the application that you want to run.</li> |
|
34 <li>In the <b>C/C++ Application</b> box, type the name of the executable |
|
35 that you want to run.</li> |
|
36 </ul></li> |
|
37 <li>Click <b>Run</b> or do the following, as required:<ul><li>To specify the |
|
38 execution arguments that an application uses, and to specify the working directory for a run |
|
39 configuration, see <a href="cdt_t_run_arg.htm">Specifying execution arguments</a>.</li><li>To set the environment variables |
|
40 and values to use when an application runs, see <a href="cdt_t_run_env.htm"> |
|
41 Setting environment variables</a></li> |
|
42 <li>To select a debugger to use when debugging an application, see |
|
43 <a href="cdt_t_run_dbg.htm">Selecting a debugger</a></li> |
|
44 <li>To specify the location of source files used when debugging a C or C++ |
|
45 application, see <a href="cdt_t_run_source.htm">Specifying the location of |
|
46 source files</a></li> |
|
47 <li>To specify where the run configuration is stored, how you access it and |
|
48 the perspective to open when running an application, see |
|
49 <a href="cdt_t_run_com.htm">Specifying the location of the run configuration</a></li></ul> |
|
50 </ol> |
|
51 |
|
52 <p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21"> |
|
53 <br> |
|
54 <a href="../concepts/cdt_c_projects.htm">CDT projects</a><br> |
|
55 <a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a></p> |
|
56 <p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21"> |
|
57 <br> |
|
58 <a href="cdt_o_run_config.htm">Creating or editing a run configuration</a></p> |
|
59 <p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21"> <br> |
|
60 <a href="../reference/cdt_o_run_dbg_pages.htm">Run and Debug dialog box</a></p> |
|
61 <img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" > |
|
62 |
|
63 </body> |
|
64 |
|
65 </html> |