Debugging Windows Store Apps

Windows Store apps can be difficult to debug because they are often started, suspended, and resumed based on user actions. These actions are controlled by the Windows Process Lifetime Management (PLM) environment. When in debug mode, however, these activation events (start, suspend, resume, terminate) are disabled. Fortunately, you can still trigger these events using the debugger.

Note

See Chapter 23, “Developing Windows Store Applications,” for additional details on creating and debugging Windows Store apps.

You debug a PLM event by first setting a breakpoint in the event handler for the event you want to debug. You then start to debug the application. From there you can use the Debug Location toolbar to fire ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.