I have an unhandled exception that invokes the Exception Assistant dialog box.
When I click "View Details ...", the exception itself has some values ββin the user object model that will not be evaluated in the property grid, but I know that I can evaluate it in the next window. (In this case, the property grid will not allow me to go into the collection, but there may be other cases)
Without changing the code to add a try block , how can I go to the immediate window and evaluate the expressions in the thrown exception?
The answer will probably be some kind of magic that I just don't know yet, for example: this.CurrentException or
something involving System.Diagnostics.StackFrame or who knows. Something smart.
There is a way to navigate to it using the debugger stream, but it is rather complicated. If you can take it and make it simple with a wrapper, which could be a solution.
debugging c # exception visual-studio-2010 immediate-window
toddmo
source share