How do you view exception details such as messages and stack traces in VS Express 2012? I am using Visual Studio Express 2012 for Windows Phone, and whenever an exception is thrown while debugging, all Visual Studio does is highlight the line of code at which the exception occurred.
When you're debugging and you get an exception, always, always, always click on the View Details link to open the View Details dialog. If the message in the dialog isn't expanded, expand it, then scan down to the Inner Exception entry.
To open the Call Stack window in Visual Studio, from the Debug menu, choose Windows>Call Stack. To set the local context to a particular row in the stack trace display, select and hold (or double click) the first column of the row.
To set Visual Studio debugger options, select Tools > Options, and under Debugging select or deselect the boxes next to the General options. You can restore all default settings with Tools > Import and Export Settings > Reset all settings.
The Exception Assistant has been removed from the Express versions of Visual Studio 2012. From here:
You are correct that we intentionally removed the exception assistant from the WDX sku for VS 2012. In 2012, pro and above are required for this functionality. You should be able to view the exception information in the watch window including the inner exception.
We'll take your feedback and look into possibly adding this dialog back into the express skus in a future release but we have no plans of changing this for 2012 at this time.
Marc Paine
Visual Studio Debugger QA Lead
Unless there's an update one day to add it back, you'd have to buy a full version of VS 2012.
You can press Break
button and then look into exception details under Locals
. Look for $exception
there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With