将PDB放在错误的位置很容易,通常你想简单地解决问题并再次运行应用程序。 但是,如果应用程序崩溃并附加调试器进行调查,并且未加载符号,该怎么办? 你能在这一点上将VC ++指向PDB吗?
It's easy to have your PDB in the wrong place, normally you want to simply sort things out and run the app again. But what if an app crashes and you attach a debugger to investigate, and the symbols aren't loaded? Can you point VC++ at the PDB at this point?
最满意答案
这是一个简单的方法:
查看模块(对接)窗口(Windows下的“调试”菜单)。 这应列出所有当前调试的DLL / EXE。 右键单击要加载PDB的模块,然后选择:
从符号路径加载符号
这将允许您通过标准的Windows打开对话框浏览PDB。
Here is one easy way:
Take a look at the Modules (docking) window (Debug menu, under Windows). This should list all currently debugging DLLs/EXEs. Right-click on the module you want to load a PDB for and select:
Load Symbols From > Symbol Path
This will let you browse for the PDB via a standard Windows open dialog.
更多推荐
发布评论