一旦你开始运行应用程序,你能在VC ++中附加PDB吗?(Can you attach a PDB in VC++ once you already started the app running?)

编程入门 行业动态 更新时间:2024-10-24 04:50:13
一旦你开始运行应用程序,你能在VC ++中附加PDB吗?(Can you attach a PDB in VC++ once you already started the app running?)

将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.

更多推荐

本文发布于:2023-07-23 00:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1225144.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:能在   应用程序   VC   PDB   running

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!