Printing beautiful graphs of objects in the Visual Studio debugger
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 to share
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 to share
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 to share