Created
February 7, 2012 12:30
-
-
Save zommarin/1759470 to your computer and use it in GitHub Desktop.
NTSD / WinDbg SOS Stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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