Is the debugger picking up the .pdb
files from the wrong location? Do you have a copy of the .pdb
files that match the binaries (i.e. .exe
, .dll
) that you are executing? Keep in mind that the .pdb
files can only be used if they were created at the same time as the exact binaries you are executing.
Try the following:
Rename the (stale) .pdb
file that the debugger wants to load, so the debugger will no longer try to pick it up.
Go to Tools->Options->Debugging->Symbols
and add the symbol file (.pdb
) location to the list.
If the debugger is already attached, right click on the module in the "Modules" list and click "Load symbols". This will re-load the symbols from the path you entered.
Also, if you know the code is exactly the same, but your .pdb
file doesn't match the binaries you are using because they were created during different builds, try un-checking the following checkbox:
Tools->Options->Debugging->Require source files to exactly match the original version