OmarElabd/ObjectExporter
关于
Object Exporter 可让你在 Visual Studio 调试时导出对象,并将其序列化为 C#、JSON 或 XML 格式。
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Object Exporter
Object Exporter lets you export out an object while debugging in Visual Studio. Currently supported output formats are: C# Object Initialization Code, JSON and XML.
Release Notes
Use Cases
Persisting an object state for debugging comparisons.
Searching for information within objects.
Generating C# object initialization code for unit testing.
Output
The currently supported output formats are: C# Object Initialization Code, JSON and XML.
Instructions
Object Exporter is accessed through the tools menu and is only visible when you are debugging and stopped at a breakpoint.

Once the menu option is selected a dialog is shown with settings for the Object Export.
Object exporter has two modes for selecting objects to export, one is by selecting from a checklist which is populated with your locals.

The other mode is by writing a custom expression as you would in the watch window.

Once an object is written or selected, object exporter will attempt to calculate it's depth in the background. This depth will give you an indication of what cutoff would need to be specified to export the entire object. Note some objects may contain circular references.

Once your objects and settings are selected, you may export them in your desired format. A dialog will be displayed with the generated ouput for each of your objects.
C#:

JSON:

XML:

Settings
Object exporter settings is access through Tools -> Options -> Object Exporter

Powered By
Object Exporter is powered by RayGun.
探索相关项目
加载中…