This is easy for a Win32 app, you just build it with cl.exe and include debugging information, then you can open the .exe in Visual Studio and step through the code. What is the equivalent for a Univeral Windows Platform (UWP) app that is distributed using an .appx? When I try to open the .exe for it in Visual Studio 2015 (before packaging, or after unpacking the generated .appx) I just get error 0x8007006E, "The system cannot open the device or file specified".
Once your APPX is installed, you can debug it from VS using the following steps:
Select the type of code you want to debug (managed/native)
Check any of the optional checkboxes (as needed)
Click "Start"
Thanks,
Stefan Wick - Windows Developer Platform
User contributions licensed under CC BY-SA 3.0