Skip to content

Instantly share code, notes, and snippets.

@anaisbetts
Last active Dec 29, 2015
Embed
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

.symfix
.reload
.loadby sos clr

Dump the managed thread stack for all threads

~*e !clrstack

Dump the native stack for all threads

~*kn100

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

!threads

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

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