How to break on unhandled exceptions in Silverlight
Posted
by Bruno Martinez
on Stack Overflow
See other posts from Stack Overflow
or by Bruno Martinez
Published on 2010-05-11T21:12:41Z
Indexed on
2010/05/11
21:24 UTC
Read the original article
Hit count: 278
In console .Net applications, the debugger breaks at the point of the throw (before stack unwinding) for exceptions with no matching catch block. It seems that Silverlight runs all user code inside a try catch, so the debugger never breaks. Instead, Application.UnhandledException is raised, but after catching the exception and unwinding the stack. To break when unhandled exceptions are thrown and not catched, I have to enable first chance exception breaks, which also stops the program for handled exceptions.
Is there a way to remove the Silverlight try block, so that exceptions get directly to the debugger?
© Stack Overflow or respective owner