Setting environment variables
You can set the environment variables and values to use when an application runs.
To set environment variables:
- In the C/C++ Projects view, select a project.
- Click Run > Run or Run > Debug.
- In the Configurations box, expand C/C++ Local.
- Select a run or debug configuration.
- Click the Environment tab..
- Do one of the following:
- To create a new environment variable, click New.
- To import an environment variable, click Import.
- To edit an existing environment variable, select an item from the list and click Edit.
- To remove an existing environment variable, select an item from the list and click Remove.
- Type a name in the Name box.
- Type a value in the Value box.
- Click Run or do the following, as required:
- To specify the execution arguments that an application uses and to specify the working directory for a run configuration, see Specifying execution arguments.
- To select a debugger to use when debugging an application, see Selecting a debugger
- To specify the location of source files used when debugging a C or C++ application, see Specifying the location of source files
- To specify where the run configuration is stored, how you access it, and the perspective to open when running an application, see Specifying the location of the run configuration
CDT Projects
Project file views