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.
- How to compare two dumped objects:
- Enable option "Show Miscellaneous files in Solution Explorer":
- Install a diff extension - I verified the Heku.VsDiff
- Select files in Solution Explorer under the Miscellaneous Files folder -> Right click -> Compare Selected Files:
- 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.
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.
Any donations during this time will be directed to local charities at my own discretion.
Thanks to JetBrains for providing an OSS development license of All Products Pack.