How do I debug UWP on local machine?

I’ve successfully built and run on Xbox One (woohoo!). Thinking I could then deploy to the store, my PC UWP build has a couple of bugs. Firstly, the screen flashes white and sits on a black screen which I think is my video intro which I can skip past with 2 seconds of button press. I then have a progression error between levels.

Problem is, I’m completely at a loss how to debug this in Visual Studio! Considering builds take 10+ minutes, I need a way to work through and solve these bugs as efficiently as possible. How’s it done?

Are you trying to step through C# code? Here’s a guide on how to do it: Unity - Manual: Debug C# code in Unity

Just make sure to enable internetClientServer and privateNetworks capablities in the application manifest before deploying it.

1 Like