<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DebuggerDisplay attribute best practices</title><link>http://blogs.msdn.com/b/jaredpar/archive/2011/03/18/debuggerdisplay-attribute-best-practices.aspx</link><description>The DebuggerDisplayAttribute is a powerful way to customize the way values are displayed at debug time.&amp;#160; Instead of getting a simple type name display, interesting fields, properties or even custom strings can be surfaced to the user in useful combinations</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: DebuggerDisplay attribute best practices</title><link>http://blogs.msdn.com/b/jaredpar/archive/2011/03/18/debuggerdisplay-attribute-best-practices.aspx#10147270</link><pubDate>Tue, 29 Mar 2011 17:18:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10147270</guid><dc:creator>Dan Moyer</dc:creator><description>&lt;p&gt;I really liked Preferred Pattern at the end of your blog. &amp;nbsp; &amp;nbsp;This tip, not only helps in seeing data within a collection, but works well for doing a Debug.WriteLine to direct output to a debugger window, like SysInternals DebugView-- to capture / watch collection data interactively. &amp;nbsp; &lt;/p&gt;
&lt;p&gt;Your tip recently helped me debug more effectively a recursive call for generating a visual tree, and viewing the output in DebugViewer was more useful than hitting a breakpoint on each iteraction and inspecting the values in the debugger, yet provide the same data if I do stop on a breakpoint to view the data.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10147270" width="1" height="1"&gt;</description></item></channel></rss>