<?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>Sleepiness in Seattle &#187; Programming</title>
	<atom:link href="http://stanblog.jojoyao.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://stanblog.jojoyao.com</link>
	<description>Stanley&#039;s Chat on the Technology and Business</description>
	<lastBuildDate>Tue, 21 Apr 2009 04:29:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Use Visual Studio to Quickly Locate Where the Exceptions are Thrown</title>
		<link>http://stanblog.jojoyao.com/2007/07/use-visual-studio-to-quickly-locate-where-the-exceptions-are-thrown/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=use-visual-studio-to-quickly-locate-where-the-exceptions-are-thrown</link>
		<comments>http://stanblog.jojoyao.com/2007/07/use-visual-studio-to-quickly-locate-where-the-exceptions-are-thrown/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 07:05:59 +0000</pubDate>
		<dc:creator>Stanley Yao</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://stanblog.jojoyao.com/newblog/?p=46</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>When there are a deep chain of function calls, especially when the managed and unmanaged code are intermingled together, it&#8217;s getting more trickier to debug.&nbsp; One situation is that an exception is thrown deep at the bottom of the chain and caught at some level after it&#8217;s relaid/re-thrown by a couple of levels and the message logged by the exception handler code is too generic to help locating the root cause of the exception.&nbsp; In this case Visual Studio could help locate where the exception is actually thrown at the beginning.&nbsp; This helps a lot in narrowing down the problem when debugging in a large code base.</p>
<p>After loading the project into Visual Studio, bring up the exception dialog by menu &quot;Debug&quot; =&gt; &quot;Exceptions&#8230;&quot; and check the types of the exceptions that you want to investigate.&nbsp; After this attach to the process in question.&nbsp; Whenever the statement will cause exceptions to be thrown, it will prompt and let you choose whether to break at that trouble&nbsp;statement and do further investigation.</p>
]]></content:encoded>
			<wfw:commentRss>http://stanblog.jojoyao.com/2007/07/use-visual-studio-to-quickly-locate-where-the-exceptions-are-thrown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

