此模块的调试信息中缺少源信息-已成功加载PDB [英] Source information missing from the debug information for this module - PDB successfully loaded
问题描述
Visual Studio加载了正确的PDB文件,但是找不到解决方案中任何内容的源信息.
Visual Studio loads the correct PDB file, but can't find source information for anything in the solution.
我尝试过的事情:
- 清理,重新启动,重新生成项目(CMake),重新构建
- 检查模块"窗口以确保已加载PDB(已加载)
- 在解决方案属性下缺少调试源文件"设置
- 使用symchk检查PDB文件(它表示PDB与EXE匹配,并且具有完整的符号信息,即未剥离)
- 从Microsoft下载系统库符号,因为为什么
是否存在某些设置可在没有源信息的情况下生成PDB?还是会在通往PDB的道路上走错路?我尝试通过PDB进行grepping,尽管它似乎包含所有符号,但找不到任何源文件路径.
Is there some setting that generates a PDB without source information? Or could it be baking bad paths into the PDB? I tried grepping through the PDB and although it appears to have all the symbols, I couldn't find any source file paths.
更多信息:这是一个64位C ++项目.一切都是静态链接,包括运行时.
More info: this is a 64-bit C++ project. Everything is statically linked including the runtime.
推荐答案
The project was missing the /Zi parameter. Apparently this still causes the compiler to generate a PDB file that can be successfully loaded, it just doesn't have any useful symbols in it. No idea why.
这篇关于此模块的调试信息中缺少源信息-已成功加载PDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!