<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>igorbrejc.net &#187; VisualStudio</title>
	<atom:link href="http://igorbrejc.net/category/development/visualstudio/feed" rel="self" type="application/rss+xml" />
	<link>http://igorbrejc.net</link>
	<description>Just another developer's weblog</description>
	<lastBuildDate>Sat, 12 Mar 2011 16:57:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Fix: Slow Debugging In Visual Studio</title>
		<link>http://igorbrejc.net/development/continuous-integration/fix-slow-debugging-in-visual-studio</link>
		<comments>http://igorbrejc.net/development/continuous-integration/fix-slow-debugging-in-visual-studio#comments</comments>
		<pubDate>Thu, 05 Mar 2009 15:58:18 +0000</pubDate>
		<dc:creator>breki</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[continuous integration]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[VisualStudio]]></category>

		<guid isPermaLink="false">http://igorbrejc.net/?p=394</guid>
		<description><![CDATA[photo credit: Kevin Eddy I&#8217;ve just found the cure for slow debugging in Visual Studio. By &#8220;slow&#8221; I mean waiting couple of seconds after each debugger step. The solution was suggested by Jeff Brown on one of Gallio Google Groups threads: turning off the &#8220;Enable property evaluation&#8230;&#8221; setting in Debugger options (Tools -&#62; Options -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/25291437@N00/2669243937/" title="Morty Comes Home" target="_blank"><img src="http://farm4.static.flickr.com/3031/2669243937_075c3ae8a4_m.jpg" alt="Morty Comes Home" border="0" /></a><br /><small><a href="http://creativecommons.org/licenses/by-nc-nd/2.0/" title="Attribution-NonCommercial-NoDerivs License" target="_blank"><img src="http://igorbrejc.net/wp-content/plugins/photo-dropper/images/cc.png" alt="Creative Commons License" border="0" width="16" height="16" align="absmiddle" /></a> <a href="http://www.photodropper.com/photos/" target="_blank">photo</a> credit: <a href="http://www.flickr.com/photos/25291437@N00/2669243937/" title="Kevin Eddy" target="_blank">Kevin Eddy</a></small></p>

<p>I&#8217;ve just found the cure for slow debugging in Visual Studio. By &#8220;slow&#8221; I mean waiting couple of seconds after each debugger step. The solution was suggested by Jeff Brown on one of <a href="http://groups.google.com/group/gallio-dev/browse_thread/thread/dd0ea380c782abe0" target="_blank">Gallio Google Groups threads</a>: turning off the &#8220;<strong>Enable property evaluation&#8230;</strong>&#8221; setting in Debugger options (Tools -&gt; Options -&gt; Debugger):</p>

<p><a title="Visual Studio Debugger Options" href="http://www.flickr.com/photos/28786233@N03/3331142536/"><img height="300" alt="Visual Studio Debugger Options" src="http://static.flickr.com/3631/3331142536_8404dc3fe6.jpg" width="504" border="0"></a></p>

<p>After turning this off, I don&#8217;t notice any real delay between debugging steps. The downside is that you won&#8217;t get automatic updates of values of object&#8217;s properties in Watch and other debugger windows. Instead you get a nice little Refresh button for each of the properties and you&#8217;ll need to click on it to get the current value:</p>

<p><a title="Visual Studio Debugger 2" href="http://www.flickr.com/photos/28786233@N03/3331147622/"><img alt="Visual Studio Debugger 2" src="http://static.flickr.com/3324/3331147622_692471647a.jpg" border="0"></a></p>

<p>I think this is a minor nuisance compared to the substantial increase of the debugging speed. Not that I&#8217;m a big fan of big debugger usage. To quote <a href="http://reader.feedshow.com/show_items-feed=ec34190eae2547ce7bddab1aba2cdfdd" target="_blank">Scott Belware</a>:</p>

<blockquote> <p>Debugging code is a slow, time consuming process.&nbsp; Time spent in a debugger is sloth time.&nbsp; You might be thinking that you&#8217;re perfectly effective in a debugger and that you don&#8217;t have any objections to doing code validation in a debugger rather than in a well-factored unit test.&nbsp; This is merely an assumption fed by how habituated you are to using a debugger.&nbsp; Without having a TDD practice, you have no basis of comparison for how ineffective debugging is compared to writing well-factored unit tests for well-factored code.</p></blockquote>

<p>Also check out Jeremy D. Miller&#8217;s <a href="http://codebetter.com/blogs/jeremy.miller/archive/2006/06/01/145830.aspx" target="_blank">posts about TDD and debugging</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://igorbrejc.net/development/continuous-integration/fix-slow-debugging-in-visual-studio/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://farm4.static.flickr.com/3031/2669243937_075c3ae8a4_m.jpg" />
		<media:content url="http://farm4.static.flickr.com/3031/2669243937_075c3ae8a4_m.jpg" medium="image">
			<media:title type="html">Morty Comes Home</media:title>
		</media:content>
		<media:content url="http://igorbrejc.net/wp-content/plugins/photo-dropper/images/cc.png" medium="image">
			<media:title type="html">Creative Commons License</media:title>
		</media:content>
		<media:content url="http://static.flickr.com/3631/3331142536_8404dc3fe6.jpg" medium="image">
			<media:title type="html">Visual Studio Debugger Options</media:title>
		</media:content>
		<media:content url="http://static.flickr.com/3324/3331147622_692471647a.jpg" medium="image">
			<media:title type="html">Visual Studio Debugger 2</media:title>
		</media:content>
	</item>
	</channel>
</rss>

