Specifying the location of source files
You can specify the location of source files used when debugging a C or C++
application. By default, this information is taken from the build path of your
project.
To specify the location of source files:
- 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 Source tab.
The Generic Source Locations list shows
the location of the project selected in the C/C++ Projects view and any
referenced projects.
To add an existing source locations:
- To add an existing project to the Additional Source Locations
list, click Add to be prompted to select a process from a list at
run-time.
- In the Add Source Location dialog box, select a location type.
- Click Next.
- Do one of the following:
- Select an existing project in your workspace. Click Finish.
- Specify a location in your file system. Click Finish.
- Click Run or do the following, as required:
CDT Projects
Project file views
Creating or editing a run configuration
Run and Debug dialog box