Printing beautiful graphs of objects in the Visual Studio debugger

I need to print a graphical object easily readable from Visual Studio because I need to show the client the state of the object at runtime.

Are there any debug visualizers for this? Expanding everything in a quick viewport is not easy for the client to understand.

+2


a source to share


3 answers


If you can get by with just one or two key properties. Then you can use the DebuggerDisplay attribute at the top of the class declaration to display the formatted text in the debugger or mouse swipe bar.

eg.



[DebuggerDisplay("Applicant - Name = {DisplayName}, EntityId = {EntityId}")]
public class Applicant
{
}

      

+3


a source


If you are on Visual Studio 2010, check out the "GCRoot via DGML" extension - http://blogs.msdn.com/mohamedg/archive/2010/03/02/visual-gcroot-via-dgml.aspx .



+1


a source


Try to enter the Intermidiate window (Ctrl + Alt + I) and write "? VariableName". Another way is to use the LinqPad renderer http://code.google.com/p/linqpadvisualizer/

+1


a source







All Articles