Visual Studio 2010不生成.pdb文件 [英] Visual Studio 2010 not generating .pdb files
问题描述
在属性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文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!