Skip to content

Instantly share code, notes, and snippets.

@JamesTryand
Forked from anaisbetts/doc.md
Created November 26, 2013 03:35
Show Gist options
  • Save JamesTryand/7653099 to your computer and use it in GitHub Desktop.
Save JamesTryand/7653099 to your computer and use it in GitHub Desktop.

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