在属性C / C ++>调试信息格式中,我设置了程序数据库(/ Zi)。并且运行时库设置为多线程调试(/ MTd)。
我是否缺少导致不创建pdb文件的其他设置?
解决方案您还需要有:属性>链接器>调试>生成调试信息=是
I was trying to debug a c++ app, but I saw breakpoints show "breakpoint will not be hit", so I checked the modules window and I saw "Binary was not build with debug information" so no symbols are loaded. And the only pdb file on the /debug folder is vc100.pdb, and there are no other pdb files anywhere in the project folders.
In properties C/C++ > Debug Information Format, I have set Program Database (/Zi). And runtime library is set to Multi-threaded Debug (/MTd).
Am I missing any other setting that's causing not to create the pdb files?
解决方案You also need to have: Properties > Linker > Debugging > Generate Debug Info = "Yes"
更多推荐
Visual Studio 2010不生成.pdb文件
发布评论