Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.


edited May 2016 in Questions And Answers

How can I debug an app that's running on the HoloLens device? What debugging commands should I write into C#/Unity, and then how can I see that info real-time as I run the app on HL? Thanks!


Best Answer


  • 'using Visual Studio 2015' is great, but completely non-specific. HOW do you debug? Do you set the config to DEBUG? Are there other command to issue? Menu Debug/Start Debugging doesn't seem to 'just do it'

  • @WearableAR,
    Debugging HoloLens applications is very similar to debugging any mobile application. Setting the configuration to debug and using Debug > Start Debugging (or F5) will build with fewer optimizations, launch the application and attach to the process.

    You will be able to set breakpoints, step through your code, examine memory, etc.


  • FWIW, I work almost exclusively in 'release', including while I'm debugging. Performance when building debug is very poor.

    Be sure to set the debugging mode to mixed (managed and native) and turn off 'Just my code'.

    In a default install, Unity symbols are at:
    C:\Program Files (x86)\Unity Hololens 5.4.0b16-HTP\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\dotnet\x86\release

    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

Sign In or Register to comment.