see an excepion in debug

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

hi,

in my current project there is a lot of code like this

try
{
......
}
catch
{
.........
}

is there some way to see the exception type and message while debugging
this code(i dont have rights to change it on the TFS)?

thanks
 
You can set a breakpoint in the exception handler and check the debugger's
watch value, $exception. You can also type this into the immediate window to
display a summary.
 
Neil,
i get this in watch and immediate windows:
The name '$exception' does not exist in the current context
this is from MSDN2:
(Visual Basic and Visual C# only) If an uncaught exception occurs with
the Exception Assistant turned off, a pseudovariable $exception is added
to the Locals window. You can expand this pseudovariable to see
information on the exception.

Do (and how) i need to turn it off?
 
Back
Top