Specifying the location of source files
You can specify the locations of source files used when debugging an application. By default, this information is taken from your project.
To specify the locations of source files:
- In the Project Explorer view, select a project.
- Click Run > Run or Run > Debug.
- In the Configurations box, expand C/C++ Application.
- Select a run or debug configuration.
- Click the Source tab.
- To add a source container to the source locations list:
- Click Add to open the Add Source dialog box
- Select a container type.
- Select a container from the list of available containers of the selected type.
- You can remove or modify a source container by selecting a container and clicking the Remove or Edit button.
- You can change the order of source containers by selecting a container and clicking the Up or Down buttons.
- To search for duplications in your source locations select the Search for duplicate source files on the path checkbox.
Creating or editing a run configuration