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:
- 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.
- You can change the order of source locations are used by selecting a location and clicking
the Up or Down buttons.
- You can remove a source location by selecting the location and clicking the Remove button.
- To search for duplications in your source locations select the Search for duplicate source files checkbox.
- Click Run or do the following, as required:
CDT Projects
Project file views
Creating or editing a run configuration
Run and Debug dialog box