BT

Your opinion matters! Please fill in the InfoQ Survey!

Visual Studio 2013 Simplifies Windows Store Apps Development with Improved Exception Reporting

| by Anand Narayanaswamy  Followers on Jul 10, 2013. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

Windows 8.1 and Visual Studio 2013 ships with improved exception reporting, which enables native C++ based Windows Store App developers to easily identify and fix errors. While Windows 8.1 adds support for capturing stack traces for exceptions as they are reported in Windows Runtime components, Visual Studio 2013 debugger provides an ability to display captured stack traces on exception objects that are derived from Platform::Exception.

In order to work with the above mentioned feature, you need to start the debugger, put a breakpoint in the catch block and select Throw Handled button in the main application page. The debugger catches all possible exceptions that is thrown inside the ThrowDataReaderError method.

Visual Studio 2013 displays the additional stack trace information for COM exception raised during the development of apps inside a dialog. It displays the stack trace iside the [External Code] frame, which indicate the activation of Just My Code, which is the new native debugging feature.

The dialog also includes a new link labeled Add exception stack trace to watch which adds the new $exceptionstack pseudovariable to the watch window. Moreover, Visual Studio 2013 displays additional stack track data inside the watch window in addition to an ability to view the stack frames for the exception with the help of Go to Source Code option in the context menu.

Visual Studio 2013 enables you to add the $exceptionstack variable to the watch window to see the last captured stack. Moreover, _M_disassembleMe is replaced with _M_stackTrace which adds the full stack trace information for the task creation stack thus enabling you to easily navigate to source code for a frame listed in the creation stack.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT