Getting The Pdb Path Associated With A Windows Executable
If you want to know the path of the PDB file associated with a Windows executable produced by Visual Studio, launch the Visual Studio Developer Command Prompt and run:
dumpbin.exe /PDBPATH:VERBOSE C:\foo.exe
See Andreas’ more than excellent blog for a programmatic solution to get the PDB path of a running executable.