Visual Studio 2010 not generating .pdb files

核能气质少年 提交于 2019-11-29 05:11:34

问题


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?


回答1:


You also need to have: Properties > Linker > Debugging > Generate Debug Info = "Yes"



来源:https://stackoverflow.com/questions/6036017/visual-studio-2010-not-generating-pdb-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!