Reputation: 3076
All, I have a build installed on my machine and some functionality is working perfectly in code( in both modes release and debug) but that functionality is not working only in build. So, I want to debug that .exe using attach to process. So, I start up the buid .exe from desktop shortcut and attach the visual studio to that .exe but visual studio says that no .pdb file is there, so it can't be debugged. So, one option is this
Or I have to do something else for debugging that code.
Upvotes: 0
Views: 5987
Reputation: 1
The easiest is to add the .pdb in the same directory as the .exe as already mentioned
Additionally, include or exclude pdbs:
Tools -> Options -> Debugging -> Symbols
Can either select all modules (with exclusions) or select specific modules to load
Disable just my code:
Tools -> Options -> Debugging -> General
Untick 'Just My Code'
Debug Microsoft libraries
You might want to add Microsoft's symbol server
Tools -> Options -> Debugging -> Symbols
Good to read http://msdn.microsoft.com/en-us/library/ms241613.aspx
Upvotes: 0
Reputation: 79
You should copy .PDB(symbol) files to the location where .EXE file exist, then VisualStudio would attach to process and let you start debuging process there.
Also, you can setup Microsoft symbol server. Check this article
Upvotes: 0