Just sharing some of my inconsequential lunch conversations with you... RSS  

Tuesday, October 09, 2007

Debugger variable $exception

Arghhhh!!! How many times did this happen to you?

try

{

...

}

catch (Exception)

{

// oops, no ex to debug here...

}


How do I get the exception on the debugger? You can use debugger variable $exception provided by the Visual Studio.NET 2005 Debugger to examine the exception in a catch block. Just add it to Watch Window. Thanks for the tip, dotnettipoftheday.

No comments:

Development Catharsis :: Copyright 2006 Mário Romano