惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Jina AI
Jina AI
月光博客
月光博客
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
量子位
博客园 - 【当耐特】
The Cloudflare Blog
宝玉的分享
宝玉的分享
博客园 - 聂微东
博客园 - 叶小钗
美团技术团队
G
Google Developers Blog
人人都是产品经理
人人都是产品经理
博客园 - Franky
小众软件
小众软件

博客园 - 魔幻天空

TFS2012常见问题及解答 UI线程同步 作业调度框架 Quartz.NET 2.0 StepByStep(2) 作业调度框架 Quartz.NET 2.0 StepByStep 单机安装“完整”SharePoint 2010 《Dissecting SQL Server Execution Plans》随记 LightSwitch™初体验 .关于 WCF Binding 中 OpenTimeout, CloseTimeout, SendTimeout, ReceiveTimeout 的解释(转载) 轻松掌握用SQL来合并查询 WF4.0 RC 官方示例 Silverlight 3和Expression 3将于7月10日发布 【原】Winfrom的自动更新模块 【转蝈蝈俊.net 】SQL Server 2005 配置发送邮件 [转自MSDN]根据FxCop整理的.NET代码编写规范 谁在TDD 【转】IIS HTTP500错误以及COM+应用程序8004e00f错误的解决方法 每日见闻(一) 【转】30个优秀.net在线学习资源站点 开源许可证简单总结
WinDbg / SOS Cheat Sheet
魔幻天空 · 2010-09-19 · via 博客园 - 魔幻天空

原文地址:
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