Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8 Store - Debug App Downloaded from store

Is there a way to debug a Windows Store app downloaded from the store? I have the source code from the build I uploaded, but no breakpoints are working.

The reason I ask is that in-app purchases aren't working in the live store, but they work fine in test mode. I need to see the exception being thrown--which is caught by the app and printed to Debug.WriteLine, but I don't see it in the console either.

like image 302
jonathanpeppers Avatar asked Apr 08 '13 13:04

jonathanpeppers


People also ask

How do I access apps downloaded from Microsoft store?

Viewing the location of programs and apps downloaded from the Microsoft Store. Programs and apps downloaded from the Microsoft Store are installed in the following path by default: C:/Program Files/WindowsApps (Hidden items). To check hidden items, open This PC, click View and select Hidden items.

How do I debug a Windows app?

You can use the Windows debuggers (WinDbg, CDB, and NTSD) to debug Windows apps. Use the PLMDebug tool to take control of suspending, resuming, and terminating a Windows app while you are debugging. To debug a managed-code Windows app, load the SOS debugging extension (sos.

Where are Microsoft debugging tools located?

The default installation directory for 64 bit OS installs for the debugging tools is C:\Program Files (x86)\Windows Kits\10\Debuggers\. If you have a 32-bit OS, you can find the Windows Kits folder under C:\Program Files.


1 Answers

Ok, it works if you follow these steps:

Debug->Debug Installed App Package

Make sure that "Debug this code type:" says "Mixed (Managed and Native)"

Once I checked that box, it worked fine, but of course debugging was pretty slow.

PS - You also have to include the symbol files in the original build uploaded to the store. This is a good reason to always do this.

like image 194
jonathanpeppers Avatar answered Nov 01 '22 11:11

jonathanpeppers