Source Lookup Path

You need to specify the source lookup path in terms of the compilation path and the local file-system path for the newly imported executable file. The CodeWarrior debugger uses both of these paths to debug the executable file.

The compilation path is the path to the original project that built the executable file. If the original project is from an IDE on a different computer, you specify the compilation path in terms of the file system on that computer.

The local file-system path is the path to the project that the CodeWarrior IDE creates in order to debug the executable file.

To specify a source lookup path for your executable file:

  1. Click the Source tab of the Debug Configurations dialog box.

    The corresponding page appears.

    Figure 1. Debug Configurations Dialog Box - Source Page
    Debug Configurations Dialog Box - Source Page
  2. Click Add.

    The Add Source dialog box appears.

  3. Select Path Mapping.
    Figure 2. Add Source Dialog Box
    Add Source Dialog Box
  4. Click OK.

    The Path Mappings dialog box appears.

  5. Provide a name for the new path mapping.
  6. Specify a name for the compilation path.
  7. In the Local file system path text box, enter the path to the parent project of the executable file, relative to your computer. Alternatively, click the ellipis button to specify the parent project.
  8. Click OK .

    The Path Mappings dialog box closes. The IDE selects the new mapping in the Source Lookup Path list of the Source page.

    Figure 3. Source Lookup Path
    Source Lookup Path
    Tip: You can use the IDE to discover the path to the parent project of the executable file, relative to the computer that generated the file. In the C/C++ Projects view of the C/C++ perspective, expand the project that contains the executable file that you want to debug. Next, expand the group that has the name of the executable file itself. A list of paths appears, relative to the computer that generated the file. Search this list for the names of source files used to build the executable file. The path to the parent project of one of these source files is the path you should enter in the Compilation path text box.
  9. If required, change the order in which the IDE searches the paths.

    The IDE searches the paths in the order shown in the Source Lookup Path list, stopping at the first match. To change this order, select a path, then click the Up or Down button to change its position in the list.

  10. Click Apply.

    The IDE saves your changes.