Object Dumper for Visual StudioObject Dumper is a Visual Studio extension for exporting live .NET objects during debugging into reusable C#, Visual Basic, JSON, XML, or YAML representations. Instead of manually expanding a large object graph and copying debugger values one by one, pause at a breakpoint, select an expression in the Code or Immediate window, choose Dump As, and Object Dumper sends the generated result to a new document, the Object Dumper output pane, or the clipboard. Object Dumper is also available for: Inspired by ObjectExporter.
FeaturesDump debugger objects in multiple formats
Generate reusable code from runtime stateC# and Visual Basic output is powered by VarDump. See the VarDump documentation for supported formatting and traversal options. Typical use cases include:
Multiple output destinationsUse Dump To to choose where generated content is written:
Serialization, traversal, formatting, and output behavior can be configured under Tools → Options → Object Dumper. InstallationInstall Object Dumper from the Visual Studio Marketplace. After installation, restart Visual Studio if prompted. Usage
ConfigurationConfigure dump behavior under: Tools → Options → Object Dumper Common defaults
C# and Visual Basic settings correspond to VarDump options. Refer to the VarDump documentation for their behavior. ChangelogSee the changelog for release details and migration guidance. IDE support
Quick tip: compare two dumped objectsVisual Studio can be used to compare two dumped object documents:
RequirementsSupported Visual Studio versions:
Supported project languages:
Supported serializer targets include:
Local debugging is currently required. Known limitations and troubleshootingOptimized code / Release buildsWhen debugging optimized code, external DLLs, or some NuGet package code, Visual Studio may report errors such as:
or:
Use a Debug build when possible. Alternatively enable: Tools → Options → Debugging → General → Suppress JIT optimization on module load See the Visual Studio documentation. Remote debuggingRemote debugging is not currently supported. Encoding issuesIf generated documents contain encoding-related issues, enable: Tools → Options → Environment → Documents → Save documents as Unicode when data cannot be saved in codepage UWP applicationsUWP does not support A workaround is to reference the .NET Standard 2.0 version of the Serialization library directly and preload it:
See the UWP sample. IIS-hosted ASP.NET MVCWhen debugging an IIS-hosted ASP.NET MVC backend, the debugger process may require additional filesystem access. Grant YourComputerName\IIS_IUSRS:
Otherwise Object Dumper may fail with See issue #90. ArchitectureObject Dumper separates Visual Studio integration from its serializer layer:
PrivacyObject Dumper does not collect personal data. Debugger interaction and serialization happen locally as part of your Visual Studio debugging session. Powered by
ContributingContributions, bug reports, and feature requests are welcome. Support the projectIf Object Dumper saves you time, you can support its continued development through: LicenseObject Dumper is licensed under the MIT License. |


