WinDbg / SOS
来源:互联网 发布:java ee只是做网站吗 编辑:程序博客网 时间:2024/05/02 19:24
Starting, Attaching, Executing and Exiting
Start -> All Programs -> Debugging Tools for Windows -> WinDbg
F6
attach to process
Ctrl-Break
interrupt debugee
.detach
detach from a process
g
continue debugee execution
q
exit WinDbg
Getting Help
?
help on commands that affect the debugee
.help
help on commands that affect the debugger
.hh command
view the on line help file
!help
help on the extension dll at the top of the chain (e. g., SOS)
Issuing Commands
up arrow, down arrow, enter
scroll through command history
Right mouse button
paste into command window
Examining the Unmanaged Environment
lmf
list loaded modules with full path
lmt
list loaded modules with last modified timestamp
~
list unmanaged threads
~thread s
select a thread for thread specific commands
!token -n
view thread permissions
k
view the unmanaged call stack
!runaway
view thread CPU consumption
bp
set a breakpoint
.dump path
dump small memory image
.dump /ma path
dump complete memory image
Working with Extension DLLs (e. g., SOS)
.chain
list extensions dlls
.load clr10/sos
load SOS for debugging framework 1.0 / 1.1
.unload clr10/sos
unload SOS
.loadby sos mscorwks
load SOS for debugging framework 2.0
SOS Commands
!threads
view managed threads
!clrstack
view the managed call stack
!dumpstack
view combined unmanaged & managed call stack
!clrstack -p
view function call arguments
!clrstack –l
view stack (local) variables
!name2ee module class
view addresses associated with a class or method
!dumpmt –md address
view the method table & methods for a class
!dumpmd address
view detailed information about a method
!do address
view information about an object
!dumpheap –stat
view memory consumption by type
!dumpheap –min size
view memory consumption by object when at least size
!dumpheap –type type
view memory consumption for all objects of type type
!gcroot address
view which object are holding a reference to address
!syncblk
view information about managed locks
SOS 2.0 Commands
!bpmd module method
set breakpoint
!DumpArray address
view contents of an array
!PrintException
view information about most recent exception
- WinDbg / SOS
- WinDbg / SOS Cheat Sheet
- windbg加载SOS
- windbg sos.dll version issue
- WinDbg + SOS.dll 初始设置
- WinDbg / SOS Cheat Sheet (zz)
- WinDbg 之 SOS扩展命令
- WinDbg 命令三部曲:(二)WinDbg SOS 扩展命令手
- 《WinDbg 命令三部曲:(二)WinDbg SOS 扩展命令手册》
- 使用Windbg和SoS扩展调试分析.NET程序
- 使用Windbg和SoS扩展调试分析.NET程序
- CLR探索系列(上):Windbg+SOS剖析揭示域世界
- CLR探索系列:Windbg+SOS动态调试分析托管代码
- CLR探索系列:Windbg+SOS剖析揭示域世界 -- cnblog
- 在windbg时要注意sos.dll的版本
- Learning WinDBG/SOS and Advanced Debugging by David Betz
- 使用Windbg和SoS扩展调试分析.NET程序
- CLR探索系列:Windbg+SOS剖析揭示域世界
- C++虚函数表解析(转)
- 网站大流量带来的问题
- 设计模式利剑16-观察者模式
- 编写可移植C/C++程序要点
- oracle 数据库创建DBLink 语法
- WinDbg / SOS
- 这年月,还是CS最安全..
- 怎样在DM355 Platform上面编译可以运行的jrtp库
- 提升进程权限
- windows上帝模式
- 斐波那契数列算法实现
- 关于Python中函数重载问题的思考
- vi 编辑器的初探
- Task