<?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>VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx</link><description>Every now and then a feature gets put into the product that just gives you this tickle of excitement every time you think about it. $exception I find is one of those features. Ok - so what scenario would I use it in? Lets say you're writing some managed</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Exception Stack Trace</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#77278</link><pubDate>Fri, 20 Feb 2004 23:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:77278</guid><dc:creator>Omer van Kloeten's .NET Zen</dc:creator><description /></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#77299</link><pubDate>Fri, 20 Feb 2004 20:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:77299</guid><dc:creator>Corrado Cavalli</dc:creator><description>VB does not seems to have $Exception...</description></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#77308</link><pubDate>Fri, 20 Feb 2004 20:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:77308</guid><dc:creator>Hans Jergen Ohff </dc:creator><description>VB doesn't seem to have very much but skipping right along....*quickly shuffles crowd onwards*...</description></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#77384</link><pubDate>Sat, 21 Feb 2004 00:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:77384</guid><dc:creator>Michael Teper</dc:creator><description>Sweet!!!!</description></item><item><title>Lost </title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#77420</link><pubDate>Sat, 21 Feb 2004 04:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:77420</guid><dc:creator>Wallace B. McClure</dc:creator><description /></item><item><title>$exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#78950</link><pubDate>Tue, 24 Feb 2004 11:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:78950</guid><dc:creator>jaybaz_MS's WebLog</dc:creator><description /></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#79163</link><pubDate>Tue, 24 Feb 2004 15:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79163</guid><dc:creator>Dennis</dc:creator><description>This is cool but why aren't you catching the exception in the first place?&lt;br&gt;&lt;br&gt;Personally, I just wrap everything in a try, call a central exception handler, and while developing put a breakpoint in the handler...</description></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#82473</link><pubDate>Tue, 02 Mar 2004 07:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:82473</guid><dc:creator>im</dc:creator><description>Quick! Everyone copy Dennis - his is the only way. (apparently)</description></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#82956</link><pubDate>Tue, 02 Mar 2004 23:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:82956</guid><dc:creator>Dennis</dc:creator><description>Oh, gimme a break, im...didn't say it was the only way, just another way, which I happen to use...my question wasn't rhetorical.</description></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#83231</link><pubDate>Wed, 03 Mar 2004 14:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:83231</guid><dc:creator>Eric</dc:creator><description>&amp;quot;This is cool but why aren't you catching the exception in the first place?&amp;quot;&lt;br&gt;&lt;br&gt;Because you want to allow the exception to bubble up the call stack?  Often the immediate (or a not-so-immediate) caller of a method will have much better information about the context of an exception than the actual site where the exception was thrown.  In those cases there's no point to adding a try...catch block since the catch would just be rethrowing the exception without adding any real value.  You might as well bubble the exception up and see if the next higher caller can add any information.&lt;br&gt;&lt;br&gt;Obviously at the top level you probably want to catch the exception whether you can add any value or not, so that you can log it and display a pretty message to the user (if there is a UI).</description></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#83408</link><pubDate>Wed, 03 Mar 2004 19:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:83408</guid><dc:creator>Mike</dc:creator><description>&amp;quot;This is cool but why aren't you catching the exception in the first place?&amp;quot;&lt;br&gt;&lt;br&gt;You shouldn't catch an exceptoin unless there's something you can do to recover from it or you're the last stop before the user get's it and need to log it and replace with a user friendly message.&lt;br&gt;&lt;br&gt;&amp;quot;call a central exception handler&amp;quot;&lt;br&gt;&lt;br&gt;This statement kind of addresses that but if you're not the last stop before the user gets it, you could be hijacking control and not allowing a component that called you to recover.&lt;br&gt;&lt;br&gt;</description></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#83644</link><pubDate>Thu, 04 Mar 2004 06:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:83644</guid><dc:creator>Keith Hill</dc:creator><description>I like this feature, having used it a good bit (after seeing it in the debug tip/tricks session at PDC).  However, for &amp;quot;discoverability&amp;quot; why not add a &amp;quot;View Last Exception&amp;quot; to the Debug menu with an embedded property grid for viewing the properties of the exception?</description></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#83810</link><pubDate>Thu, 04 Mar 2004 15:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:83810</guid><dc:creator>Scott Colestock</dc:creator><description>Hmmm - I often go to the Debug-Exceptions dialog and just turn on &amp;quot;break into the debugger&amp;quot; for all CLR exceptions.  Yes, you occasionally get first chance exceptions that you can just let go by, but it works quite well generally speaking.</description></item><item><title>Shaykat's Visual Studio 2003 Tips</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#89283</link><pubDate>Sun, 14 Mar 2004 12:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:89283</guid><dc:creator>Code/Tea/Etc...</dc:creator><description /></item><item><title>Shaykat's Visual Studio 2003 Tips</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#89292</link><pubDate>Sun, 14 Mar 2004 12:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:89292</guid><dc:creator>Code/Tea/Etc...</dc:creator><description /></item><item><title>re: VS 2003 Tip #3: View exception information with $exception</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#93398</link><pubDate>Sun, 21 Mar 2004 06:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:93398</guid><dc:creator>Richard Murillo</dc:creator><description>I've flip-flopped back and forth between VB and C based languaged, and finally ended up in the lap of vb.net after writing ASP pages for quite some time in vbscript, and am just wondering why C# has so many more useful features than VB. We know that they all compile down to MSIL, but still, there are many more useful things in C# than in VB.Net and I can't help but feel left out. I love VB, and don't want to give it up. Just a thought.</description></item><item><title>Shaykat's Visual Studio 2003 Tips</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#220134</link><pubDate>Wed, 25 Aug 2004 13:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:220134</guid><dc:creator>Code/Tea/Etc.</dc:creator><description /></item><item><title>View exception information while debugging in Visual Studio</title><link>http://blogs.msdn.com/shaykatc/archive/2004/02/20/77214.aspx#242300</link><pubDate>Thu, 14 Oct 2004 18:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:242300</guid><dc:creator>Fabrice's weblog</dc:creator><description /></item></channel></rss>