windows 如何中止 WinDbg 中的长时间操作?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/191233/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 05:32:14  来源:igfitidea点击:

How can I abort a long operation in WinDbg?

windowsdebuggingwindbg

提问by Aardvark

Often WinDbg will enter a state where it is *Busy*performing an operation.

WinDbg 通常会进入一种状态,在该状态下它正在 *忙 *执行操作。

Often this is due to some mistake I made trying to dt some_variable_itll_never_findor setting a break point somewhere without symbols or the 1000's of other mistakes I make fumbling around this tool.

这通常是由于我在尝试dt some_variable_itll_never_find 时犯的一些错误或在没有符号的某处设置断点或我在这个工具上摸索的 1000 多个其他错误造成的。

Is there a way to cancel the current operation?

有没有办法取消当前的操作?

回答by hakan

I don't have the tool now, but as far as I remember it should be Ctrl+Break.

我现在没有这个工具,但据我所知应该是 Ctrl+Break。

回答by joe

Sometimes Ctrl+Break doesnt work. At that point you may use Debug menu -> Break.

有时 Ctrl+Break 不起作用。此时您可以使用调试菜单 -> 中断。

Thanks

谢谢

回答by EdChum

Ctrl+Break 

will forcibly Debug break all but if for instance you entered some windbg command that takes a long time and you want to kill that then you should enter

将强制调试中断所有但例如,如果您输入了一些需要很长时间的windbg命令并且您想杀死它,那么您应该输入

Ctrl+c

This will kill the current running command.

这将终止当前正在运行的命令。

回答by Tal

You probably had "http://msdl.microsoft.com/download/symbols" in the symbol path. Windbg will try to locate all your PDBs on Microsoft site :-(.
Pressing Ctrl+Break is not fast enough. What I usually do is to unplug the network cable, until Windbg wakes up. Just be carfull, if Windbg was realy downloading one if its OS DLL, the DLL gets curropted. You will need .reload /o to fix that DLL. I only unplug when I know all OS DLL were already downloaded.

您可能在符号路径中有“ http://msdl.microsoft.com/download/symbols”。Windbg 将尝试在 Microsoft 站点上找到您所有的 PDB :-(。
按 Ctrl+Break 还不够快。我通常做的是拔掉网线,直到 Windbg 醒来。请小心点,如果 Windbg 真的在下载一个如果它的 OS DLL, DLL 会被压缩. 你需要 .reload /o 来修复那个 DLL. 我只有在我知道所有的 OS DLL 都已经下载时才拔掉插头.

To avoid this delay in the first place, uncheck "Resolve Unqualified Symbols" found under the "Debug" menu.

为了首先避免这种延迟,请取消选中“调试”菜单下的“解析不合格符号”。