孤剑之家

宝剑锋从磨砺出,梅花香自苦寒来。我欲仗剑走天涯。

用户操作
[留言]  [发消息]  [加为好友] 
订阅我的博客
XML聚合    FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
AloneSword的公告
<center><font><strong> 若侵犯了您的权利,请告之 </strong></font></Br></hr> <script type="text/javascript" language="javascript"> document.getElementById("tagline").innerHTML+=""; </script> <img border="0" width ="160px" height="120" src="http://p.blog.csdn.net/images/p_blog_csdn_net/AloneSword/39176/o_%e6%88%91%e5%92%8c%e5%b7%a7%e5%85%b0.jpg" style="display:none;"/> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-7061640-1"); pageTracker._trackPageview(); } catch(err) {}</script> <br> <script language="JavaScript" type="text/javascript" src="http://www.50bang.com/click.js?user_id=19669"></script> </Center> </font>
文章分类
Business
DLL Help
博客园
Friend's Blog
Easy come,Easy go
Kevin-Moon
玉兰树屋
韩健斌
黑咖啡情结
Unix/Linux
China Unix(RSS)
Web Design
5D多媒体
存档

原创  WinDbg / SOS Cheat Sheet 收藏

好东西,要留下记录,尽量全部装进我的大脑。哈哈!

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

 


发表于 @ 2009年01月04日 22:27:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:【翻译 windbg - 1】Getting started with windbg - part I (第一部分 1) | 新一篇:【翻译 windbg-2】Getting started with windbg - part I (第二部分 )

  • 发表评论
  • 评论内容:
  •  
Copyright © AloneSword
Powered by CSDN Blog