Source Directories Dialog Box: Rules Tab

Create rules to replace source file path information specified by the symbol file.

The debugger assumes that all source files of the debuggee are stored in the same directory as they were at compile time. If the sources are placed in different directories, you can add a source path substitution rule.

Menu

Options > Source Directories...

Toolbar

Not available.

New

The New button opens the New Source Path Substitution Rule dialog box. Enter the string of the path to be replaced into the Replace field and the new token that replaces the old path into the field by. You can also browse for a substitution directory.

Modify

The Modify button opens the Modify Source Path Substitution Rule dialog box where you can change an existing rule. Edit the string of the path to be replaced in the Replace field and the token that replaces the old path into the field by. You can also browse for a substitution directory.

Delete

Click the Delete button to delete the selected rule.

Note

If the debugger is not able to locate a source file, the File Open dialog box opens requesting the path to this missing file. When you select the missing file, the debugger automatically adds a source path substitution rule that is used to locate other files. This might happen, for example, if you select a module in the Source Files window, but the corresponding file is not located in the directory specified in the symbol file.

For more complete information about compiler optimizations, see our Optimization Notice.