Visual Studio 2010不生成.pdb文件

编程入门 行业动态 更新时间:2024-10-06 18:33:02
本文介绍了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文件

本文发布于:2023-05-28 00:47:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/308237.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   Studio   Visual   pdb

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!