从VS调试器切换到WinDbg [英] Switching from VS debugger to WinDbg

查看:85
本文介绍了从VS调试器切换到WinDbg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于我已通过单击Visual Studio( F5 )中的播放"按钮来启动实时调试会话,以启动可执行文件.

Given I have started a live debugging session by clicking the Play button in Visual Studio (F5) in order to launch the executable.

说我发现了一个有趣的情况,无法在Visual Studio中进行分析,但是我知道如何在WinDbg中对其进行分析.

Say that I find an interesting situation which cannot be analyzed in Visual Studio but I know how to analyze it in WinDbg.

如何分离Visual Studio并附加WinDbg,以便WinDbg现在是调试器?

How would I detach Visual Studio and attach with WinDbg so that WinDbg is now the debugger?

我尝试过:

  • 分离VS,但这当然会继续运行应用程序,这是我不想要的
  • 附加WinDbg.只能连接一个调试器.我不是在寻找WinDbg的非侵入式附件.
  • 我不想在VS中创建故障转储,然后在WinDbg中进行分析.我希望继续进行实时调试会话.
  • 冻结线程(有趣的是,它们在非侵入式WinDbg中显示为未冻结),但是在分离VS时它们将不会冻结.

推荐答案

这对我有用:

  1. 以非侵入方式( F6 )附加WinDbg实例
  2. 分离Visual Studio
  3. 以侵入模式( F6 )附加一个新的WinDbg实例
  4. 它将自动断开
  5. 卸下无创WinDbg( .detach )
  1. Attach a WinDbg instance in non-invasive mode (F6)
  2. Detach Visual Studio
  3. Attach a new WinDbg instance in invasive mode (F6)
  4. It will break automatically
  5. Detach the non-invasive WinDbg (.detach)

同样,您可以将控件转移回Visual Studio:

Likewise you can transfer control back to Visual Studio:

  1. 以非侵入方式( F6 )附加WinDbg实例
  2. 分离入侵性WinDbg( .detach )
  3. 附加Visual Studio
  4. 在Visual Studio中中断(按暂停)
  5. 卸下无创WinDbg( .detach )
  1. Attach a WinDbg instance in non-invasive mode (F6)
  2. Detach the invasive WinDbg (.detach)
  3. Attach Visual Studio
  4. Break in Visual Studio (press Pause)
  5. Detach the non-invasive WinDbg (.detach)

这篇关于从VS调试器切换到WinDbg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆