|
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>Specifying execution arguments</title> |
|
8 <link rel="stylesheet" type="text/css" href="../help.css"> |
|
9 </head> |
|
10 |
|
11 <body> |
|
12 |
|
13 <h1>Specifying execution arguments</h1> |
|
14 |
|
15 <p>You can specify the execution arguments that an application uses and the working directory |
|
16 for a run configuration.</p> |
|
17 |
|
18 <p>To specify execution arguments:</p> |
|
19 |
|
20 <ol> |
|
21 <li>In the C/C++ Projects view, select a project.</li> |
|
22 <li>Click <b>Run > Run</b> or <b>Run > Debug</b>.</li> |
|
23 <li>In the <b>Configurations</b> box, expand <b>C/C++ Local</b>.</li> |
|
24 <li>Select a run or debug configuration.</li> |
|
25 <li>Click the <b>Arguments</b> tab.<br> |
|
26 <img src="../images/run_arguments.png" alt="Run Arguments window"> |
|
27 |
|
28 |
|
29 </li> |
|
30 <li>In the <b>C/C++ Program Arguments</b> box, type the arguments that you |
|
31 want to pass to the command line.</li> |
|
32 <li>To specify a local directory or a different project in your workspace, |
|
33 clear the <b>Use default working directory</b> check box.</li> |
|
34 <li>Click <b>Run</b> or do the following, as required:<ul><li>To set the environment variables |
|
35 and values to use when an application runs, see <a href="cdt_t_run_env.htm"> |
|
36 Setting environment variables</a></li> |
|
37 <li>To select a debugger to use when debugging an application, see |
|
38 <a href="cdt_t_run_dbg.htm">Creating a run configuration</a></li> |
|
39 <li>To specify the location of source files used when debugging a C or C++ |
|
40 application, see <a href="cdt_t_run_source.htm">Specifying the location of |
|
41 source files</a></li> |
|
42 <li>To specify where the run configuration is stored, how you access it and |
|
43 the perspective to open when running an application, see |
|
44 <a href="cdt_t_run_com.htm">Specifying the location of the run configuration</a></li></ul> |
|
45 </ol> |
|
46 |
|
47 <p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21"> |
|
48 <br> |
|
49 <a href="../concepts/cdt_c_projects.htm">CDT projects</a><br> |
|
50 <a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a></p> |
|
51 <p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21"> |
|
52 <br> |
|
53 <a href="cdt_o_run_config.htm">Creating or editing a run configuration</a></p> |
|
54 <p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21"> |
|
55 <br> |
|
56 <a href="../reference/cdt_o_run_dbg_pages.htm">Run and Debug dialog box</a></p> |
|
57 <img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" > |
|
58 |
|
59 </body> |
|
60 |
|
61 </html> |