8

How do I dump a struct using windbg, is there a dumpstruct command similar to dumpobject? Or can dumpobject dump structs aswell?

MatteS
  • 1,542
  • 1
  • 16
  • 35

1 Answers1

15

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>
Liran
  • 1,596
  • 1
  • 13
  • 11