Im getting TargetInvocationExceptions like
An unhandled exception of type System.Reflection.TargetInvocationException occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation.
because I'm calling code with
Dispatcher.Invoke(MyRoutine...)
How can I make the VS 2010 Debugger step into MyRoutine to the place where the Exception actually happens???
I know that I can build a try...catch around the Dispatcher.Invoke
and then look at the inner exception, but this is quite laborious. I want the Debugger to stop where the bug happens.
Any ideas how to do that?