WinDbg / SOS Cheat Sheet
2010-09-19 13:27
711 查看
原文地址: http://kentb.blogspot.com/2007/11/windbg-sos-cheat-sheet.html
WinDbg / SOS Cheat Sheet
Environment | |
Attach to process | F6 |
Detach from a process | .detach |
Break debugger execution | Ctrl-Break |
Continue debugger execution | g |
Exit WinDbg | q |
Clear the screen | .cls |
Getting Help | |
Debugger commands | ? |
Debugger commands | .help |
Online help file | .hh command |
Help on extension on top of chain | !help |
Help on specific extension command | !help command |
Issuing Commands | |
Scroll through command history | [up], [down], [enter] |
Paste into command window | [right-click] |
Examining the Unmanaged Environment | |
List loaded modules with full path | lmf |
List loaded modules with last modified timestamp | lmt |
List unmanaged threads | ~ |
Select active thread | ~thread_id s |
View call stack | k |
View thread CPU consumption | !runaway |
Set a breakpoint | bp |
Dump small memory image | .dump path |
Dump large memory image | .dump /ma path |
Loading SOS | |
Load SOS for .NET 1.x | .load clr10\sos |
Load SOS for .NET 2.0 | .loadby sos mscorwks |
Examining the Managed Environment | |
Dump runtime type information | !dumpruntimetypes |
View managed threads | !threads |
View managed call stack | !clrstack |
View combined managed / unmanaged callstack | !dumpstack |
View function call arguments | !clrstack –p |
View local variables | !clrstack –l |
View object dump | !do address |
View array dump | !da address |
View object size (including children) | !objsize address |
View heap usage by type | !dumpheap -stat |
View heap usage filtered by type | !dumpheap -type type |
View GC roots of object instance | !gcroot address |
View managed sync blocks | !syncblk |
View managed thinlocks (CLR 2.0) | !dumpheap –thinlock |
View information on most recent exception | !printexception |
Set a breakpoint | !bpmd module method |
相关文章推荐
- WinDbg / SOS Cheat Sheet
- WinDbg / SOS Cheat Sheet
- WinDbg / SOS Cheat Sheet (zz)
- [转]WinDbg / SOS Cheat Sheet
- Python Mechanize Cheat Sheet
- Git Cheat Sheet
- vim cheatsheet
- 大O表示法算法复杂度速查表(Big-O Algorithm Complexity Cheat Sheet)
- Tech support cheat sheet
- sql injection cheat sheet
- 使用WinDbg+SOS及WinDbg Script寻找内存中DataTable第M行N列的值
- 用windbg+sos找出程序中谁占用内存过高,谁占用CPU过高(转载)
- [转]Get Started: Debugging Memory Related Issues in .Net Application Using WinDBG and SOS
- SysVinit to Systemd Cheatsheet/zh
- windbg加载sos.dll
- windbg + sos 调试w3wp进程内存崩溃问题
- SOS扩展中的BPMD命令,以及WinDBG实现BPMD相同功能
- SysVinit to Systemd Cheatsheet Linux服务配置
- jqMobi指南系列教程是《 jqMobi Javascript Frameworks Cheat Sheet》 的中文版
- windbg指定SOS版本,执行扩展命令报错