Lets you dump a variable from Locals while debugging to JSON formatted string. Only works when in debugging mode, and only with what is in debugger.CurrentStackFrame.Locals Access from Tools menu or right click in an editor window to directly choose a local variable. This is written with C# in mind. Using the debugger expression traversal generator option it might work with other languages but it is not optimized for such use and all data types might not be properly recognized. New in version 2: It is now possible to use System.Text.Json.JsonSerializer to generate JSON. It has its pros and cons compared to traversing the expressions from the debugger. So try them both out for your scenario and use the one that works best for you. When traversing the expressions it it now possible to use regular expressions to ignore data members based on their type or name. |