从VS调试器切换到WinDbg [英] Switching from VS debugger to WinDbg
本文介绍了从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时它们将不会冻结.
推荐答案
这对我有用:
- 以非侵入方式( F6 )附加WinDbg实例
- 分离Visual Studio
- 以侵入模式( F6 )附加一个新的WinDbg实例
- 它将自动断开
- 卸下无创WinDbg(
.detach
)
- Attach a WinDbg instance in non-invasive mode (F6)
- Detach Visual Studio
- Attach a new WinDbg instance in invasive mode (F6)
- It will break automatically
- Detach the non-invasive WinDbg (
.detach
)
同样,您可以将控件转移回Visual Studio:
Likewise you can transfer control back to Visual Studio:
- 以非侵入方式( F6 )附加WinDbg实例
- 分离入侵性WinDbg(
.detach
) - 附加Visual Studio
- 在Visual Studio中中断(按暂停)
- 卸下无创WinDbg(
.detach
)
- Attach a WinDbg instance in non-invasive mode (F6)
- Detach the invasive WinDbg (
.detach
) - Attach Visual Studio
- Break in Visual Studio (press Pause)
- Detach the non-invasive WinDbg (
.detach
)
这篇关于从VS调试器切换到WinDbg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文