<?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; debug</title>
	<atom:link href="http://stanblog.jojoyao.com/tag/debug/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>
		<item>
		<title>Can&#8217;t set break points in Visual Studio debugger due to symbol loading problems?</title>
		<link>http://stanblog.jojoyao.com/2007/03/cant-set-break-points-in-visual-studio-debugger-due-to-symbol-loading-problems/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cant-set-break-points-in-visual-studio-debugger-due-to-symbol-loading-problems</link>
		<comments>http://stanblog.jojoyao.com/2007/03/cant-set-break-points-in-visual-studio-debugger-due-to-symbol-loading-problems/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 00:28:27 +0000</pubDate>
		<dc:creator>Stanley Yao</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[symbol]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://stanblog.jojoyao.com/newblog/?p=19</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>When you can&#8217;t set break points when the debugger is running, it&#8217;s most likely due to symbols loading related problems.&nbsp; Instead of smashing your computer, check the following first:</p>
<ul>
<li>Make sure you really setup the symbols.&nbsp; Tools -&gt; Options -&gt; Debugging -&gt;Symbols.&nbsp; Add all the paths where expected .pdb files are stored.&nbsp; Also make sure the permission is set correctly on the folder, especially for remote shared folders.&nbsp; Use &quot;net use &hellip;&quot; command if necessary.</li>
<li>In VS2005, Tools -&gt; Options -&gt; Debugging -&gt; General.&nbsp; Uncheck &quot;Just my code&quot;.</li>
<li>Make sure the application is running in debug instead of release mode.&nbsp; Check web.config file for tag &lt;compilation debug=&quot;true&quot;&gt;, or right click the solution in the solution explorer and choose properties.</li>
<li>The timestamp of the .pdb files and their corresponding .dll files are in sync.&nbsp; The unmatching symbol files are not picked up, because if they are not matching, there could be unexpected harmful running results.</li>
<li>Check the Module window (Debug -&gt; Windows -&gt; Modules) and make sure all symbols are loaded when running the debugger.</li>
<li>Delete bin and obj folders, restart VS or OS and retry.</li>
<li>Delete the project and fetch source tree again and retry.</li>
<li>If none of the above helps, go ahead and smash your computer.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://stanblog.jojoyao.com/2007/03/cant-set-break-points-in-visual-studio-debugger-due-to-symbol-loading-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

