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:
Remote debugging: The debugger searches for source files in the above directories on the debuggee machine, then in:
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.