I have a project I have built using SCons and the MS VS 2013 (express) compiler (compiled from the command line).
It compiles and runs, however, it is crashing periodically, and so I want to debug it.
I added the following flags:
/Zi # Debug symbols
/DEBUG # Debug symbols
/FS # Concurrent debug database file access
After building, I see a pdb file generated called vc120.pdb. My executable is located in a build folder, and the pdb file is in the main project directory.
However, when I try to attach my executable for debugging via VS2013 or WinDbg, I always get an error that the debug symbols could not be found.
I added the 'path' to the pdb file in both VS2013 and WinDbg, but I get the same result. I also tried copying the pdb file into the build directory (to make it beside my executable), but no dice. I even changed the name of the pdb file to match the name of my executable, but that didn't work either.
Is there something I am missing here?