Search Order

The debugger uses a different search order for finding source files, depending on whether you are debugging locally or remotely. It searches through each location in the lists below until it finds a file that matches the requested name.

Local debugging: The debugger searches for source files in:

  1. The executable directory
  2. The current directory
  3. The record of directories
  4. Paths in the CPP_DBG_PATH environment variable

Remote debugging: The debugger searches for source files in the above directories on the debuggee machine, then in:

  1. The current directory of the debugger machine
  2. The record of directories on the debugger machine
  3. Paths in the CPP_DBG_PATH environment variable on the debugger machine

If the source file cannot be located in any of the above directories, a dialog box opens requesting the path name for the source file. The path name you enter is searched for, first on the debuggee machine, then on the debugger machine. This path name is also added to the record of directories to be used in future searches.



Record of Directories