调试器扩展SOSEX

SOSEX是另一个调试器扩展,可用于非托管代码和托管代码的调试。

 
SOSEX的安装包是一个ZIP文件,只需把ZIP文件中压缩的文件释放到指定的位置即可完成安装。如果将这些文件放到调试器的安装目录下,可以避免在加载SOSEX时指定完整路径。如下:
 
0:000> .load sosex.dll
0:000> !sosex.help
SOSEX - Copyright 2007-2012 by Steve Johnson - http://www.stevestechspot.com/
To report bugs or offer feedback about SOSEX, please email sjjohnson@pobox.com
Quick Ref:
--------------------------------------------------
bhi       [filename]                                     BuildHeapIndex - Builds
 an index file for heap objects.
bpsc      (Deprecated.  Use !mbp instead)
chi                                                      ClearHeapIndex - Frees
all resources used by the heap index and removes it from memory.
dlk       [-d]                                           Displays deadlocks betw
een SyncBlocks and/or ReaderWriterLocks
dumpgen   [-free] [-stat] [-type ]   Dumps the contents of t
he specified generation
                   [-nostrings]
finq      [GenNum] [-stat]                               Displays objects in the
 finalization queue
frq       [-stat]                                        Displays objects in the
 Freachable queue
gcgen                                       Displays the GC generat
ion of the specified object
gch       [HandleType]...                                Lists all GCHandles, op
tionally filtered by specified handle types
help      [CommandName]                                  Display this screen or
details about the specified command
lhi       [filename]                                     LoadHeapIndex - load th
e heap index into memory.
mbc                            Clears the specified or
 all managed breakpoints
mbd                            Disables the specified
or all managed breakpoints
mbe                            Enables the specified o
r all managed breakpoints
mbl       [SOSEX breakpoint ID]                          Prints the specified or
 all managed breakpoints
mbm       [ILOffset] [Options]       Sets a managed breakpoi
nt on methods matching the specified filter
mbp       [ColNum] [Options]     Sets a managed breakpoi
nt at the specified source code location
mdso      [Options]                                      Dumps object references
 on the stack and in CPU registers in the current context
mdt       [TypeName | VarName | MT] [ADDR] [Options]     Displays the fields of
an object or type, optionally recursively
mdv       [nFrameNum]                                    Displays arguments and
locals for a managed frame
mfrag     [-stat] [-mt:]                             Reports free blocks, th
e type of object following the free block, and fragmentation statistics
mframe    [nFrameNum]                                    Displays or sets the cu
rrent managed frame for the !mdt and !mdv commands
mgu       // TODO: Document
mk        [FrameCount] [-l] [-p] [-a]                    Prints a stack trace of
 managed and unmanaged frames
mln       [expression]                                   Displays the type of ma
naged data located at the specified address or the current instruction pointer
mlocks    [-d]                                           Lists all managed lock
objects and CriticalSections and their owning threads
mroot     [-all]                            Displays GC roots for t
he specified object
mt        (no parameters)                                Steps into the managed
method at the current position
mu        [address] [-s] [-il] [-n]                      Displays a disassembly
around the current instruction with interleaved source, IL and asm code
muf       [MD Address | Code Address] [-s] [-il] [-n]    Displays a disassembly
with interleaved source, IL and asm code
mwaits    [-d]                                           Lists all waiting threa
ds and, if known, the locks they are waiting on
mx                                        Displays managed type/f
ield/method names matching the specified filter string
refs       [-target|-source]                 Displays all references
 from and to the specified object
rwlock    [ObjectAddr | -d]                              Displays all RWLocks or
, if provided a RWLock address, details of the specified lock
sosexhelp [CommandName]                                  Display this screen or
details about the specified command
strings   [ModuleAddress] [Options]                      Search the managed heap
 or a module for strings matching the specified criteria
 
ListGcHandles - See gch
 
Use !help or !sosexhelp for more details about each command.
 
0:000>
 

 

转载于:https://www.cnblogs.com/yumianhu/archive/2013/01/30/3710754.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值