Skip to content

Instantly share code, notes, and snippets.

@zommarin
Created February 7, 2012 12:30
Show Gist options
  • Save zommarin/1759470 to your computer and use it in GitHub Desktop.
Save zommarin/1759470 to your computer and use it in GitHub Desktop.
NTSD / WinDbg SOS Stuff
# Before - setup environment (PowerShell syntax):
$env:_NT_SYMBOL_PROXY = "webproxy.mycompany.com:8080"
# Start NTSD
& 'C:\Program Files\Debugging Tools for Windows (x64)\ntsd.exe' -p <pid>
& 'C:\Program Files\Debugging Tools for Windows (x64)\ntsd.exe' -z <dumpfile>
# Fix symbol path
.symfix
# Reload symbols
.reload
# Load the Son of Strike extension
.loadby sos mscorwks
# Show threads (native)
~
# Show threads (SOS)
!threads
# Change to thread 7
~7s
# Show native stack
k
# Show CLR stacktrace
!CLRStack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment