Did you know… You can add $exception to the Watch window to see the caught exception – #318


If you just quickly want to know what exception has been caught, without having to figure out the variable name of the exception in the try catch, you can just type in $exception in the watch window.

$exception in the Watch window

Technorati Tags: VS2005Tip,VS2008Tip

Comments (5)

  1. Hi Sarah,

    Enjoyed your tips and tricks session at Re-mix in Brighton! I’ll be watching you blog in the future. Great to meet you and good luck with the hiking 🙂

    Jonathon Kresner

  2. minnesota mike says:

    That is interesting.  I’m assuming that there must be at least a few other ‘$’ variables that could be added to the Watch window as well.

  3. Luk says:

    Great! Now if we had $result… 🙂

  4. Gert says:

    Are there more $… tags that we should know about?

  5. My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. Clarius has released T4 Editor , a product that adds a good experience to Visual Studio for editing T4 templates. Pixel Mine has released

Skip to main content