How can I abort a long operation in WinDbg?

WindowsDebuggingWindbg

Windows Problem Overview


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

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

Is there a way to cancel the current operation?

Windows Solutions


Solution 1 - Windows

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

Solution 2 - Windows

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

Thanks

Solution 3 - Windows

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

Ctrl+c

This will kill the current running command.

Solution 4 - Windows

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.

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAardvarkView Question on Stackoverflow
Solution 1 - WindowshakanView Answer on Stackoverflow
Solution 2 - WindowsjoeView Answer on Stackoverflow
Solution 3 - WindowsEdChumView Answer on Stackoverflow
Solution 4 - WindowsTalView Answer on Stackoverflow