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:

  1. In the C/C++ Projects view, select a project.
  2. Click Run > Run or Run > Debug.
  3. In the Configurations box, expand C/C++ Local.
  4. Select a run or debug configuration.
  5. 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:

  1. 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.
  2. In the Add Source Location dialog box, select a location type.
  3. Click Next.
  4. Do one of the following:
  5. Click Run or do the following, as required:

Related concepts
CDT Projects
Project file views

Related tasks
Creating or editing a run configuration

Related reference
Run and Debug dialog box

IBM Copyright Statement