1. Open the Preferences dialog box.
2. Select the Source Code tab.
3. In Source Path Substitutions, specify the source path substitutions for PureCoverage to apply when searching for source code to display in the Annotated Source window. PureCoverage recognizes only fully qualified pathnames in this field. Use the format:
<OriginalPath1>|<NewPath1>[;<OriginalPath2>|<NewPath2>;
. . .<OriginalPathx>|<NewPathx>]
Notes:
§ As an alternative to specifying search path substitutions, you can specify search paths for PureCoverage to use for locating source files. Source path substitutions apply to the entire directory tree, while a search path applies only to the directory specified. For more information, click
§ Substitutions you have specified in the Select Directory for <filename> dialog box are displayed in this field.
§ The search for original paths is not case sensitive. If you have search paths on UNIX that are different only in case, PureCoverage cannot distinguish between them. Use the substitute directive on UNIX to handle these cases; refer to the PureCoverage for UNIX online help for information.
§ The first match that PureCoverage encounters in the list of substitutions is the match that is applied.
§ A substitution takes effect only if the original pathname recorded in the debug information is a fully qualified pathname. If you select a pathname in the Select Directory for <filename> dialog box and the original pathname is not fully qualified, PureCoverage does not perform a substitution but instead adds the pathname you select to the search path.
§ PureCoverage uses the following search order to locate source files:
1. The directory where the program you're monitoring 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. Source path substitutions specified in the Source Code tab of the Preferences dialog box
§ PureCoverage saves preferences in the Coverage.ini file.
(C) Copyright IBM Corporation 1993, 2010.