debug help command

0:000> ?

 

Open debugger.chm for complete debugger documentation

 

B[C|D|E][<bps>] - clear/disable/enable breakpoint(s)

BL - list breakpoints

BA <access> <size> <addr> - set processor breakpoint

BP <address> - set soft breakpoint

 <expr> unary ops: + - not by wo dwo qwo poi hi low

       binary ops: + - * / mod(%) and(&) xor(^) or(|)

       comparisons: == (=) < > !=

       operands: number in current radix, public symbol, <reg>

<type> : b (byte), w (word), d[s] (doubleword [with symbols]),

         a (ascii), c (dword and Char), u (unicode), l (list)

         f (float), D (double), s|S (ascii/unicode string)

         q (quadword)

<pattern> : [(nt | <dll-name>)!]<var-name> (<var-name> can include ? and *)

<range> : <address> <address>

        : <address> L <count>

 

User-mode options:

~ - list threads status

~#s - set default thread

| - list processes status

|#s - set default process

 ...

Open debugger.chm for complete debugger documentation

 

---------------------

 

0:000> .help

. commands:

   .abandon - abandon the current process

   .allow_exec_cmds [0|1] - control execution commands

   .allow_image_mapping [0|1] - control on-demand image file mapping

   .apply_dbp [<options>] - add current data breakpoint state to a

                            register context

   .asm [<options>] - set disassembly options

   .asm- [<options>] - clear disassembly options

   .attach <proc> - attach to <proc> at next execution

   .block { <commands> } - brackets a set of commands for nested execution

   .bpsync [0|1] - special breakpoint behavior for multithreaded debuggees

   .break - break out of the enclosing loop

   .breakin - break into KD

   .cache [<options>] - virtual memory cache control

...

-------------------

sos debug help

0:000> !help

-------------------------------------------------------------------------------

SOS is a debugger extension DLL designed to aid in the debugging of managed

programs. Functions are listed by category, then roughly in order of

importance. Shortcut names for popular functions are listed in parenthesis.

Type "!help <functionname>" for detailed info on that function.

 

Object Inspection                  Examining code and stacks

-----------------------------      -----------------------------

DumpObj (do)                       Threads

DumpArray (da)                     ThreadState

DumpStackObjects (dso)             IP2MD

DumpHeap                           U

DumpVC                             DumpStack

GCRoot                             EEStack

ObjSize                            CLRStack

FinalizeQueue                      GCInfo

PrintException (pe)                EHInfo

TraverseHeap                       BPMD

                                   COMState

 

Examining CLR data structures      Diagnostic Utilities

-----------------------------      -----------------------------

DumpDomain                         VerifyHeap

EEHeap                             VerifyObj

Name2EE                            FindRoots

SyncBlk                            HeapStat

DumpMT                             GCWhere

DumpClass                          ListNearObj (lno)

DumpMD                             GCHandles

Token2EE                           GCHandleLeaks

EEVersion                          FinalizeQueue (fq)

DumpModule                         FindAppDomain

ThreadPool                         SaveModule

DumpAssembly                       ProcInfo

DumpSigElem                        StopOnException (soe)

DumpRuntimeTypes                   DumpLog

DumpSig                            VMMap

RCWCleanupList                     VMStat

DumpIL                             MinidumpMode

DumpRCW                            AnalyzeOOM (ao)

DumpCCW

 

Examining the GC history           Other

-----------------------------      -----------------------------

HistInit                           FAQ

HistRoot

HistObj

HistObjFind

HistClear

 

一个例子, VS  诊断工具 拍快照

分析 .NET Framework 内存问题

From <https://msdn.microsoft.com/zh-cn/library/dn342825.aspx>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值