首页 新闻 赞助 找找看

Visual Studio 2010+sos里面怎么看 Field里面的内容啊?

0
悬赏园豆:15 [已解决问题] 解决于 2012-04-05 11:41

1,!dumpobj <地址>,例如:

!dumpobj 00c8b73c
Name:        ConsoleApplication1.MyObject+Feedback
MethodTable: 00a13984
EEClass:     00a11528
Size:        32(0x20) bytes
File:        D:\xgc\0402\Solution1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe
Fields:
      MT    Field   Offset                 Type VT     Attr    Value Name
79b9f568  4000076        4        System.Object  0 instance 00c8b73c _target
79b9f568  4000077        8        System.Object  0 instance 00c8b8cc _methodBase
79b9a9ac  4000078        c        System.IntPtr  1 instance 009920D8 _methodPtr
79b9a9ac  4000079       10        System.IntPtr  1 instance 00A1C018 _methodPtrAux
79b9f568  400007a       14        System.Object  0 instance 45a299bc00000000 _invocationList
79b9a9ac  400007b       18        System.IntPtr  1 instance 00000000 _invocationCount

 我现在想看_target里面的值,

dd 00c8b73c
应为表达式结尾 //显示结果

!dumpVC 0x79b9f568+0x4 0x79b9f568+0x8
应为表达式结尾//显示结果

谁来帮帮我啊?谢谢了!

szjdw的主页 szjdw | 初学一级 | 园豆:6
提问于:2012-04-02 19:53
< >
分享
最佳答案
0

!dumpvc 79b9a9ac 009920e4//009920e4=009920D8+c
Name:        System.IntPtr
MethodTable: 79b9a9ac
EEClass:     798d57e0
Size:        12(0xc) bytes
File:        C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
Fields:
      MT    Field   Offset                 Type VT     Attr    Value Name
79b5a21c  40004a9        0                  PTR  0 instance 8b0c2444 m_value
79b9a9ac  40004aa      b4c        System.IntPtr  1   shared   static Zero
    >> Domain:Value  0015db70:NotInit  <<

szjdw | 初学一级 |园豆:6 | 2012-04-05 11:41
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册