Sosex command to view variables! MDT

Source: Internet
Author: User

! MDTAllows you to dump the fields of a given type by type name or to examine the fields of an object or value type instance. not only can you examine the fields of an object or value type instance, but you can also examine an entire object graph by specifying the "-R" (recursive) switch. want to examine a local variable or argument? No problem. Just enter "! MDT <var Name> ", and voila! The best way to demonstrate the power of this command is with a few examples.

0: 000>! MDT system. datetime 003bef0c
003bef0c (system. datetime) 2008/01/02 03:04:05. 678 valtype (MT = 65cd9e98, ADDR = 003bef0c)

0: 000>! MDT theguid
003bef1c (system. guid) {29b9c9c8-3751-42be-8c7a-8b92ff499588} valtype (MT = 65cd660, ADDR = 003bef1c)

0: 000>! MDT consoletestapp. teststruct
Teststruct
Member1: uint
Member2: uint

0: 000>! MDT consoletestapp. teststruct 003bef04
003bef04 (consoletestapp. teststruct) valtype (MT = 001b3198, ADDR = 003bef04)
Member1: 0x162e (system. uint32)
Member2: 0x451434e0 (system. uint32)

0: 000>! MDT 6cece0
06487ce0 (system. runtime. remoting. proxies. _ transparentproxy)
_ RP: 062.16cb4 (system. runtime. remoting. proxies. remotingproxy)
_ Stubdata: 06482a5c (boxed system. intptr) valtype (MT = 65cfb114, ADDR = 06482a60)
_ PMT: 65cf902c (system. intptr)
_ Pinterfacmep: 00000000 (system. intptr)
_ Stub: 68c71e70 (system. intptr)

0: 000>! MDT 6performance0-R
06487ce0 (system. runtime. remoting. proxies. _ transparentproxy)
_ RP: 062.16cb4 (system. runtime. remoting. proxies. remotingproxy)
_ TP: 06487ce0 (system. runtime. remoting. proxies. _ transparentproxy)
<Recursive>
_ Identity: 062.16a98 (system. runtime. remoting. Identity)
_ Flags: 0x4 (system. int32)
_ Tporobject: 06487ce0 (system. runtime. remoting. proxies. _ transparentproxy)
<Recursive>
_ Objuri: 06484c88 (system. String: "/49cf1154_ea17_4f51_b666_8f91a1263a00/0um3p4he0mnsfugppw1z7gkd_1.rem ")
_ URL: NULL (system. String)
_ Objref: 06484e10 (system. runtime. remoting. objref)
Uri: 06484c88 (system. String: "/49cf1154_ea17_4f51_b666_8f91a1263a00/0um3p4he0mnsfugppw1z7gkd_1.rem ")
Typeinfo: 064850f4 (system. runtime. remoting. typeinfo)
Servertype: 064862d4 (system. String: "system. appdomain, mscorlib, version = 2.0.0.0, culture = neutral...
Serverhierarchy: NULL (system. object [])
Interfacesimplemented: 064864bc (system. String [], elements: 2)
Envoyinfo: NULL (system. runtime. remoting. ienvoyinfo)
Channelinfo: 06486b5c (system. runtime. remoting. channelinfo)
Channeldata: 06486b68 (system. object [], elements: 1)
Objrefflags: 0x0 (system. int32)
Srvidentity: 06484e2c (system. runtime. interopservices. gchandle) valtype (MT = 65cfbcb8, ADDR = 06484e2c)
M_handle: 007e11ec (system. intptr)
Domainid: 0x2 (system. int32)
_ Channelsink: 06487c90 (system. runtime. remoting. channels. crossappdomainsink)
_ Xaddata: 06483834 (system. runtime. remoting. channels. crossappdomaindata)
_ Contextid: 06483854 (boxed system. int32) boxedval = 0x87c330
_ Domainid: 0x2 (system. int32)
_ Processguid: 06483530 (system. String: "88866410_d263_4d8a_b904158278132285be ")
_ Envoychain: 0610000ca8 (system. runtime. remoting. messaging. envoyterminatorsink)
_ DPH: NULL (system. runtime. remoting. contexts. dynamicpropertyholder)
_ Lease: NULL (system. runtime. remoting. Lifetime. Lease)
_ Serverobject: NULL (system. marshalbyrefobject)
_ Flags: 0x3 (system. runtime. remoting. proxies. realproxyflags)
_ Srvidentity: 06366cd0 (system. runtime. interopservices. gchandle) valtype (MT = 65cfbcb8, ADDR = 06366cd0)
M_handle: 007e11ec (system. intptr)
_ Optflags: 0x7000000 (system. int32)
_ Domainid: 0x2 (system. int32)
_ CCM: NULL (system. runtime. remoting. messaging. constructorcallmessage)
_ Ctorthread: 0x0 (system. int32)
_ Stubdata: 06482a5c (boxed system. intptr) valtype (MT = 65cfb114, ADDR = 06482a60)
M_value: ffffffff (system. uintptr)
_ PMT: 65cf902c (system. intptr)
_ Pinterfacmep: 00000000 (system. intptr)
_ Stub: 68c71e70 (system. intptr)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.