简体   繁体   English

无法在Visual Studio 2005中生成PDB文件

[英]Unable to generate PDB files in Visual Studio 2005

For most assemblies, I'm able to generate their respective .pdb files. 对于大多数程序集,我能够生成它们各自的.pdb文件。 However, I've got one project that isn't generating their .pdb files. 但是,我有一个项目不会生成其.pdb文件。

I've made sure that it on debug mode and that the project's code is not being optimized. 我确保它处于调试模式,并且该项目的代码未得到优化。

Any ideas? 有任何想法吗?

In the Build tab of the Project Properties window, there's an Advanced... button. 在“项目属性”窗口的“ Build选项卡中,有一个“ Advanced...按钮。 There, You have a combo box called Debug info . 在那里,您有一个名为Debug info的组合框。 Set your options there. 在此设置选项。

Did you ensure that you've got both the Debug Information Format set in the C/C++ project properties (under General in VS2003, I think it's pretty much the same on most VS versions) and also set the linker to generate debugging info, which is a separate setting found under Linker/Debugging? 您是否确保已在C / C ++项目属性中设置了“调试信息格式”(在VS2003中为“常规”,我认为在大多数VS版本中几乎相同),并且还设置了链接器以生成调试信息,链接器/调试下是否找到单独的设置?

Both of those settings are normally turned on by default in a debug build but depending on how the configuration has been edited, it might be that either of them has been switched off. 通常,在调试版本中,默认情况下会打开这两个设置,但是根据配置的编辑方式,可能是其中两个都已关闭。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM