Source information missing from the debug information for this module - PDB successfully loaded

可紊 提交于 2020-01-14 07:38:09

问题


Visual Studio loads the correct PDB file, but can't find source information for anything in the solution.

Things I've tried:

  • Clean, reboot, regenerate project (CMake), rebuild
  • Check the Modules window to ensure the PDB is loaded (it is)
  • Mess with "Debug Source Files" setting under solution properties
  • Check the PDB file with symchk (it says the PDB matches the EXE, and that it has full symbol information, i.e. it's not stripped)
  • Download system lib symbols from Microsoft because why not

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.

More info: this is a 64-bit C++ project. Everything is statically linked including the runtime.


回答1:


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.




回答2:


At the bottom bar of visual studio, click Application Output and resolve the error from the exception which was produced.



来源:https://stackoverflow.com/questions/39728189/source-information-missing-from-the-debug-information-for-this-module-pdb-succ

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!