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:
Post a Comment