Last active
November 17, 2021 19:58
-
-
Save CleanCoder/2223a4621e88b0c84fddd8d9ce82f817 to your computer and use it in GitHub Desktop.
WinDBG
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
1) 准备工作 | |
.loadby sos clr | |
.cordll -ve -u -l | |
.load <<path>>\sosex.dll | |
.load <<path>>\mex.dll | |
.symfix | |
.reload | |
2) 常用方法 | |
!pe [<exceptionAddr>] most recent exception data (don’t forget the external stack) | |
!dae Dump all exception found (psscor) | |
3) 线程相关 | |
~<thread id>s 切换线程 | |
~ 显示所有线程 | |
!clrstack [-a] [-p] [-l] 显示调用栈; -p 方法调用函数; -l 局部变量 | |
~*e !clrstack 显示所有托管线程堆栈 | |
~*e !dumpstack 显示所有线程堆栈 | |
!runaway 查看线程运行时间 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment