gpt4 book ai didi

debugging - Windbg的各种 Debug模式

转载 作者:行者123 更新时间:2023-12-05 00:22:19 28 4
gpt4 key购买 nike

我还想问一件事:我在某处读到过 Windbg 支持多种 Debug模式,其中一种模式是某种内核调试,其中系统正常运行并且不等待 Windbg 断点等。这是本地内核吗 Debug模式?此外,如果有人可以非常简要地澄清 Non invasive debugging 之间的差异和 Dormant mode .我没有从 MSDN 上发现它。谢谢

最佳答案

调试类型
可以分几次
a) 在内核调试和用户模式调试之间(应用程序调试)
b) 在实时调试(运行系统)和事后调试(故障转储分析)之间
c) 本地调试和远程调试之间
所以总共有8种调试组合。
对于本地实时内核调试,您需要将 Windows 内核置于 Debug模式。如果您不希望那样,您可以使用 SysInternals LiveKd 获得“伪”实时本地内核调试。 .
无创调试
非侵入式调试是用户模式调试的一个子集,您已经链接到的文章(它是 WinDbg 帮助的副本)对此进行了最好的描述,它说:

With noninvasive debugging, you do not have as many debugging actions. However, you can minimize the debugger's interference with the target application. Noninvasive debugging is useful if the target application has stopped responding.

In noninvasive debugging, the debugger does not actually attach to the target application. The debugger suspends all of the target's threads and has access to the target's memory, registers, and other such information. However, the debugger cannot control the target.


休眠模式
休眠模式是指 WinDbg 正在运行但尚未连接到任何目标时。例如。如果您只是在没有任何命令行选项的情况下启动 WinDbg,并且您尚未按 F6 键附加到进程。

关于debugging - Windbg的各种 Debug模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30063323/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com