6. September 2016 15:19
Has it happened to you that you want see and save a variable value when you doing debug in visual studio. For example, for a particular exception, you want save and share the detailed information, or you have a list of objects too difficult to watch. You can type the variable in immediate command window, and copy/paste the output, or you can use Object Exporter.
Start your debug mode, and make a break point. Now highlight the variable, and tools > Export Objects:
You can choose output format as C# Object Initialization Code, JSON and XML. Pretty cool!