How do you debug a Windows Universal App built with command line?

1

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".

debugging
visual-studio-2015
win-universal-app
uwp
asked on Stack Overflow Feb 4, 2016 by Curyous

1 Answer

0

Once your APPX is installed, you can debug it from VS using the following steps:

  1. Debug --> Other Debug Target --> Debug Installed App Package

enter image description here

  1. Select the app you want to debug

enter image description here

  1. Select the type of code you want to debug (managed/native)

  2. Check any of the optional checkboxes (as needed)

  3. Click "Start"

Thanks,

Stefan Wick - Windows Developer Platform

answered on Stack Overflow Mar 29, 2017 by Stefan Wick MSFT

User contributions licensed under CC BY-SA 3.0