开发者

Windbg with SOS, How to dump a c# struct

开发者 https://www.devze.com 2023-01-16 01:21 出处:网络
How do I dump a struct using 开发者_StackOverflow社区windbg, is there a dumpstruct command similar to dumpobject? Or can dumpobject dump structs aswell?Yes, you could use the !dumpvc command.

How do I dump a struct using 开发者_StackOverflow社区windbg, is there a dumpstruct command similar to dumpobject? Or can dumpobject dump structs aswell?


Yes, you could use the !dumpvc command.
Since structs don't have an object header, the debugger doesn't know its type, so you will have to pass it the struct's MethodTable address.

>!DumpVC <METHOD_TABLE_ADDRESS> <OBJECT_ADDRESS>
0

精彩评论

暂无评论...
验证码 换一张
取 消