Specifying Search Paths for Source Files

Related Topics

 

1.    Open the Default Settings or Executable Settings dialog box, or click Settings in the Run Program dialog box.

2.    Select the Files tab.

3.    Click the browse button for Source file search path.

4.    In the Edit Search Path dialog box, use the toolbar to add and arrange the directories you want Purify to use when it searches for source files to display, and then click OK.

5.    Click OK in the settings dialog box.

Notes:

§          When you collect code coverage data, you can use source path substitution to help Purify locate source files. A substitution replaces the beginning of a pathname, and applies to an entire directory tree. Substitution is useful if the location of your source tree has changed since you last collected coverage data. For more information, click images\shortcut.gif

§          Purify uses the following search order to locate source files:

1.    The directory where the program you're running is located.

2.    The search path specified in the Files tab in the Settings for <exename> dialog box.

3.    For Visual C++ programs, the directories specified in the Visual Studio Workspace file.

4.    The search path specified in the Files tab in the Default Settings dialog box.

5.    For Visual C++ programs, the MFC and Visual C++ directories.

6.    The PATH environment variable.

7.    For code coverage runs, source path substitutions specified in the Source Code tab of the Preferences dialog box.

§      You can type paths as a semicolon-delimited list directly in Source file search path.

§      To remove a selected path from the list, click images\moddel.gif in the Edit Search Path dialog box or press Delete.

§      To select a different version of the source file from the Annotated Source window, right-click in the window and select Select Source File from the shortcut menu.

§      Annotated source code is available only if debug line information is available and if a module is monitored at line level.

(C) Copyright IBM Corporation 1992, 2010.