Skip to content

Instantly share code, notes, and snippets.

Last active Dec 29, 2015
What would you like to do?
The smallest number of WinDbg commands you can know to Do Stuff With VS

File => Attach To Process, pick devenv.exe

First, fix the symbols and shit

.loadby sos clr

Dump the managed thread stack for all threads

~*e !clrstack

Dump the native stack for all threads


Get a list of managed threads and whether an exception is on one of them


Print the exception info from the pointer you found in the !threads table

!pe 40304442  (Replace with actual address)

Create a crash dump snapshot you can open with VS or send to somebody

.dump /ma C:\path\to\a\place\to\put\a\crash.dmp

Continue the halted process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment