VS 2010不加载PDB [英] VS 2010 doesn't load PDB
问题描述
编译在.exe旁边生成一个.pdb文件。
当我运行附带调试器的项目时,我收到以下错误信息:
无法找到调试信息加载
由Include / Exclude设置禁用。
此时我无法在代码中插入断点。
但是,当我手动加载符号(使用模块窗口)时,它们正确加载,我可以再次插入断点。
我尝试从仓库重建,清理和重新编号我的代码。没有什么帮助。 .pdb显然存在并匹配。为什么VS不能立即加载他们?
更新:
所以事实证明,排除特定的符号文件加载。
转到:
工具 - > options-> debugging-> symbols->指定排除的模块
并确保没有任何内容被排除。
I have a VS 2010 solution which I build in debug mode on a x64 Windows Server 2008 R2 machine. The compilation produces a .pdb file next to the .exe. When I run the project with the debugger attached I get the following error message:
"Debugging information cannot be found or does not match. Loading disabled by Include/Exclude setting."
At this point I cannot insert breakpoints in the code. However, when I manually load the symbols (using the modules window) they are loaded correctly and I can again insert breakpoints. I tried rebuilding, cleaning and recloning my code from the repository. Nothing helps. The .pdb obviously exists and matches. Why can't VS load them right away?
UPDATE: So it turns out that there's an option to exclude specific symbol files from loading.
Go to:
tools->options->debugging->symbols->Specify excluded modules
And make sure that nothing is excluded.
这篇关于VS 2010不加载PDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!