Visual Studio 2010不生成.pdb文件 [英] Visual Studio 2010 not generating .pdb files

查看:459
本文介绍了Visual Studio 2010不生成.pdb文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调试一个c ++应用程序,但我看到断点显示断点不会被击中,所以我检查了模块窗口,我看到二进制没有构建调试信息,所以没有加载任何符号。而/ debug文件夹中唯一的pdb文件是vc100.pdb,项目文件夹中的任何地方都没有其他的pdb文件。



在属性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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆