<?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/"
	>

<channel>
	<title>Blog of developer Mikkel Ovesen &#187; debug</title>
	<atom:link href="http://blog.ovesens.net/tag/debug/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ovesens.net</link>
	<description>My thoughts, stuff I need to remember or things I just want to share with the world</description>
	<lastBuildDate>Thu, 19 Jan 2012 11:55:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>NHibernate dirty problem, weird updates in NHprof</title>
		<link>http://blog.ovesens.net/2011/03/nhibernate-dirty-problem-weird-updates-in-nhprof/</link>
		<comments>http://blog.ovesens.net/2011/03/nhibernate-dirty-problem-weird-updates-in-nhprof/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 11:01:40 +0000</pubDate>
		<dc:creator>Mikkel Ovesen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[nh]]></category>
		<category><![CDATA[nh3]]></category>
		<category><![CDATA[nhibernate]]></category>
		<category><![CDATA[orm]]></category>

		<guid isPermaLink="false">http://blog.ovesens.net/?p=352</guid>
		<description><![CDATA[Upgrading to NH3 from NH2.1.2 We have recently update to NHibernate 3 in one of our projects. While testing I was suddenly seeing some weird UPDATE statements in NHprof. It seemed like the NHibernate IsDirty detection had changed. After some &#8230; <a href="http://blog.ovesens.net/2011/03/nhibernate-dirty-problem-weird-updates-in-nhprof/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Upgrading to NH3 from NH2.1.2</h2>
<p>We have recently update to NHibernate 3 in one of our projects. While testing I was suddenly seeing some weird UPDATE statements in NHprof.</p>
<p>It seemed like the NHibernate IsDirty detection had changed.</p>
<p>After some digging it turned out that our mapping files (made in FluentNhibernate) actually contained some minor errors when compared to the DB schema. Minor errors like value typed properties not being nullable when the ClassMap said it should be.</p>
<h2>Debugging of NHibernate projects</h2>
<p>I found that inserting the following into the classmaps made debugging a lot easier:</p>
<pre class="brush: csharp;">DynamicUpdate();</pre>
<p>Now only the properties that are Dirty (according to NHibernate) are used in the SQL UPDATE statement. Here are the description from NHibernate docs:</p>
<ul>
<li><strong><tt>dynamic-update</tt></strong> (optional, defaults to <tt>false</tt>): Specifies that <tt>UPDATE</tt> SQL should be generated at runtime and contain only those columns whose values have changed.</li>
<li><strong><tt>dynamic-insert</tt></strong>: (optional, defaults to <tt>false</tt>): Specifies that <tt>INSERT</tt> SQL should be generated at runtime and contain only the columns whose values are not null.</li>
</ul>
<p>That led me directly to the property in the mapping files that had errors in it, and I could easily fix it.</p>
<h2>Conclusion</h2>
<p>So, in our case, it wasn&#8217;t really the NHibernate dirty detection that changed, NHibernate 3 is just not as fault tolerant, than that of NH2. So the upgrade made us discover some errors that should be corrected.</p>
<p>As such, this is a good thing, but it would have been nicer if NH2 had made us aware of these errors in the first place.</p>
<p>But hey, better late than never <img src='http://blog.ovesens.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ovesens.net/2011/03/nhibernate-dirty-problem-weird-updates-in-nhprof/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Membase local development machine ip problem &#8211; FIXED</title>
		<link>http://blog.ovesens.net/2011/02/membase-local-development-machine-ip-problem-fixed/</link>
		<comments>http://blog.ovesens.net/2011/02/membase-local-development-machine-ip-problem-fixed/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 12:05:18 +0000</pubDate>
		<dc:creator>Mikkel Ovesen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[membase]]></category>

		<guid isPermaLink="false">http://blog.ovesens.net/?p=323</guid>
		<description><![CDATA[Membase caching stops working I struggled with Membase last night. I added NHibernate 2. level caching, Asp.net Session caching, Output caching and custom caching to some new Membase providers. It worked at first, but then suddenly nothing was cached, and &#8230; <a href="http://blog.ovesens.net/2011/02/membase-local-development-machine-ip-problem-fixed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Membase caching stops working</h2>
<p>I struggled with Membase last night. I added NHibernate 2. level caching, Asp.net Session caching, Output caching and custom caching to some new Membase providers.</p>
<p>It worked at first, but then suddenly nothing was cached, and nothing was retrieved from the cache. I was working on my development machine and it seems like the problem is due to the network switching.</p>
<p>Well here is how it was solved. First navigate to the Membase server directory (C:\Program Files\Membase\Server\bin). Then execute the following commands.</p>
<p><code>service_stop.bat<br />
service_unregister.bat<br />
service_register.bat ns_1@127.0.0.1<br />
service_start.bat</code></p>
<p>Read the original here: <a href="http://blog.danhulton.com/2011/02/05/membase-on-windows-7-ip-address-fix/">http://blog.danhulton.com/2011/02/05/membase-on-windows-7-ip-address-fix/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ovesens.net/2011/02/membase-local-development-machine-ip-problem-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2008 debugging and breakpoints</title>
		<link>http://blog.ovesens.net/2010/01/visual-studio-2008-debugging-and-breakpoints/</link>
		<comments>http://blog.ovesens.net/2010/01/visual-studio-2008-debugging-and-breakpoints/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 08:38:32 +0000</pubDate>
		<dc:creator>Mikkel Ovesen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[debugger]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[vs2008]]></category>

		<guid isPermaLink="false">http://blog.ovesens.net/?p=207</guid>
		<description><![CDATA[My development tools are currently Visual Studio 2008, Resharper 4.5, Gallio and Testdriven.NET. But for as long as I have used these tools, my Visual Studio debugger has only worked partly. The problem When I inserted some breakpoints inÂ my code, &#8230; <a href="http://blog.ovesens.net/2010/01/visual-studio-2008-debugging-and-breakpoints/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My development tools are currently <a href="http://msdn.microsoft.com/en-us/vstudio/default.aspx" target="_blank">Visual Studio 2008</a>, <a href="http://www.jetbrains.com/resharper/index.html" target="_blank">Resharper 4.5</a>, <a href="http://www.gallio.org/" target="_blank">Gallio</a> and <a href="http://www.testdriven.net/" target="_blank">Testdriven.NET</a>. But for as long as I have used these tools, my Visual Studio debugger has only worked partly.</p>
<h2>The problem</h2>
<p>When I inserted some breakpoints inÂ my code, the first one was almost all the time hit. However, when I tried to step through the code, it worked fine for a bout 3-6 steps. But then Visual Studio debugger decided that was enough, and just completed the code.</p>
<p>The good thing was, it forced me to write many unit test cases, but sometimes I really think it is nice to visually see the state of your objects, in the code.</p>
<p>I have spoken to colleagues, and tested with different combinations of Gallio, Testdriven.NET and Re-sharper enabled, as I thought they cased the problem. But the debugger just kept bugging me. I had actually given up finding a solution to this problem, thinking that Visual Studio 2010 would fix it.</p>
<h2>The solution</h2>
<p>So finally, in a complete other context, I stumbled upon this page:</p>
<p><a href="http://code.msdn.microsoft.com/KB957912" target="_blank">http://code.msdn.microsoft.com/KB957912</a></p>
<p>And thought&#8230;. that title sounds interesting&#8230; I quickly moved to the <a href="http://support.microsoft.com/kb/957912" target="_blank">KB article</a>, and started to read. I thought, that sounds exactly as my problem.</p>
<p>With nothing to loose I installed the update, and started to test the debugger&#8230; until now it seems to work <img src='http://blog.ovesens.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>- please note, I do not use the debugger that often as I write very reliable code <img src='http://blog.ovesens.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ovesens.net/2010/01/visual-studio-2008-debugging-and-breakpoints/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debugging memory leaks and Parallel LINQ</title>
		<link>http://blog.ovesens.net/2008/12/debugging-memory-leaks-and-parallel-linq/</link>
		<comments>http://blog.ovesens.net/2008/12/debugging-memory-leaks-and-parallel-linq/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 01:47:00 +0000</pubDate>
		<dc:creator>Mikkel Ovesen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[memoryleaks]]></category>
		<category><![CDATA[parallel]]></category>
		<category><![CDATA[plinq]]></category>

		<guid isPermaLink="false">/post/2008/12/18/Debugging-memory-leaks-and-Parallel-LINQ.aspx</guid>
		<description><![CDATA[Link to good articles Debugging OutOfMemoryExceptions in managed code using Windbg http://blogs.msdn.com/amolravande/archive/2008/12/16/debugging-outofmemoryexceptions-in-managed-code-using-windbg.aspx &#160; Query Data with Parallel LINQ http://blogs.msdn.com/charlie/archive/2008/12/15/query-data-with-parallel-linq.aspx &#160;]]></description>
			<content:encoded><![CDATA[<h1>Link to good articles</h1>
<p>
Debugging OutOfMemoryExceptions in managed code using Windbg
</p>
<p>http://blogs.msdn.com/amolravande/archive/2008/12/16/debugging-outofmemoryexceptions-in-managed-code-using-windbg.aspx</p>
<p>
&nbsp;
</p>
<p>
Query Data with Parallel LINQ
</p>
<p>http://blogs.msdn.com/charlie/archive/2008/12/15/query-data-with-parallel-linq.aspx</p>
<p>
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ovesens.net/2008/12/debugging-memory-leaks-and-parallel-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Do I: Debug ASP.NET AJAX Applications Using Visual Studio 2005?</title>
		<link>http://blog.ovesens.net/2007/09/how-do-i-debug-asp-net-ajax-applications-using-visual-studio-2005/</link>
		<comments>http://blog.ovesens.net/2007/09/how-do-i-debug-asp-net-ajax-applications-using-visual-studio-2005/#comments</comments>
		<pubDate>Sat, 29 Sep 2007 13:57:00 +0000</pubDate>
		<dc:creator>Mikkel Ovesen</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[vs]]></category>
		<category><![CDATA[vs2005]]></category>

		<guid isPermaLink="false">/post/2007/09/29/How-Do-I-Debug-ASPNET-AJAX-Applications-Using-Visual-Studio-2005.aspx</guid>
		<description><![CDATA[Original post here: http://www.asp.net/learn/ajax-videos/video-167.aspx &#8212; In this video we learn how to use Visual Studio 2005 to debug ASP.NET AJAX applications. We are shown how the ScriptManager is used to access the JavaScript created by the ASP.NET AJAX server controls, &#8230; <a href="http://blog.ovesens.net/2007/09/how-do-i-debug-asp-net-ajax-applications-using-visual-studio-2005/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Original post here: <a title="http://www.asp.net/learn/ajax-videos/video-167.aspx" href="http://www.asp.net/learn/ajax-videos/video-167.aspx">http://www.asp.net/learn/ajax-videos/video-167.aspx</a></p>
<p>&#8212;</p>
<p>In this video we learn how to use Visual Studio 2005 to debug ASP.NET AJAX applications. We are shown how the ScriptManager is used to access the JavaScript created by the ASP.NET AJAX server controls, and we also see how to use the Sys.Debug class to insert a trace message and a breakpoint.</p>
<p>View video: <a href="/wp-content/uploads/archive/WinVideo-ASP-DebugAJAXApplicationsUsingVisualStudio2005.wmv">WinVideo-ASP-DebugAJAXApplicationsUsingVisualStudio2005.wmv (16.89 mb)</a></p>
<p><a href="/wp-content/uploads/archive/WinVideo-ASP-DebugAJAXApplicationsUsingVisualStudio2005.wmv"><img src="http://static.asp.net/asp.net/images/videos/video-167.png" alt="Play Video" width="264" height="156" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ovesens.net/2007/09/how-do-i-debug-asp-net-ajax-applications-using-visual-studio-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

