Generate symbols for debugging in wndbg
I have an C++ MFC project I'd like to debug with wndbg, and I need to generate the symbols for it when compiling the project.开发者_运维技巧
Does anybody know how to do that?
I thought that de .pdb files where enough, but wndbg complains it cannot find symbol files at the path where these .pdb file reside for my project.
There are several paths, which windbg uses to find the pdb's.
- An absolute path to your pdb is stored in your exe/dll/lib files. If you debug the app on your computer, where you build it, it 'magically' finds the pdb if it wasn'T deleted prematurely.
- You can add the pdb to the search path. Either in the Menu -> File -> Symbol Path or on the command line with
.sympath+ <path>
command. - You can add your pdbs after build to a local symbol-server.
精彩评论