Skip to content

A Visual Studio 2022 extension. Dumps the objects from the debugger session in the next formats: C#, VB, JSON, YAML, and XML.

License

Notifications You must be signed in to change notification settings

honhwa/ObjectDumper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Dumper

marketplace downloads

A Visual Studio 2022 extension. Dumps the objects from the debugging session in the next formats: C# Object Initialization Code, JSON, Visual Basic Object Initialization Code, XML and YAML.

It opens the dumped object in a separate document window.

Presentation

Configurable:

image

Quick tips:

  • How to compare two dumped objects:
    1. Enable option "Show Miscellaneous files in Solution Explorer": image
    2. Install a diff extension - I verified the Heku.VsDiff
    3. Select files in Solution Explorer under the Miscellaneous Files folder -> Right click -> Compare Selected Files: image

Known restrictions:

  • C#, F# and VisualBasic project languages are currently supported only.
  • the debugging code mustn't be optimized so the Expression Evaluator can be run.
  • local debugging only.
  • it doesn't work for UWP applications, because UAP doesn't support Assembly.LoadFrom. You can bypass this restriction by referencing the .nestandard20 version of Serialization lib and calling: _ = ObjectSerializer.Serialize(null, "cs"); for loading the serializer into executing assembly. Example

Privacy Notice: No personal data is collected at all.

Powered By

This tool has been working well for my own personal needs, but outside that its future depends on your feedback. Feel free to open an issue.

PayPal

Any donations during this time will be directed to local charities at my own discretion.

Acknowledgments

Thanks to JetBrains for providing an OSS development license of All Products Pack.

All Products Pack logo.

About

A Visual Studio 2022 extension. Dumps the objects from the debugger session in the next formats: C#, VB, JSON, YAML, and XML.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%