Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 2.03 KB

managed-debugging-with-unity-il2cpp.md

File metadata and controls

42 lines (30 loc) · 2.03 KB
title description author ms.author ms.date ms.topic keywords
Managed debugging with Unity
This article covers how to run a managed debugger on your Unity IL2CPP UWP project.
lolambean
lolab
10/22/2019
article
unity, visual studio, debugging, il2cpp, HoloLens, mixed reality headset, windows mixed reality headset, virtual reality headset, UWP

Managed debugging with Unity

Follow these steps to attach a managed debugger to your Unity IL2CPP UWP build for HoloLens and HoloLens 2.

  1. You'll need to be on a network that supports multicast.

  2. Go to UWP Publishing Settings Capabilities (File -> Build Settings -> Player Settings, find 'Publishing Settings' section), and check InternetClientServer and PrivateNetworkClientServer:

    UWP Publishing Settings Capabilities

  3. Configure the Unity UWP build settings:

    • Development Build
    • Script Debugging
    • Wait for Managed Debugger (optional)

    UWP Build Settings

  4. Build in Unity.

  5. Build and deploy from the Visual Studio solution to your device. You should build with the Debug or Release configurations. The Master configuration disables the Unity profiler and can prevent optimal debugging. Optionally, verify Internet (Client & Server) and Private Networks (Client & Server) in the capabilities list in Package.appxmanifest in the solution.

  6. Make sure your device is connected to the same network as your PC and start the app on your device.

  7. Make sure the device is not connected to your PC via USB.

  8. Double-click one of your scripts in Unity and go to the Visual Studio solution that opens to view and edit.

  9. Debug -> Attach Unity Debugger.

    Attach Unity Debugger

  10. Select your device in the list and click "OK" to attach.

    Device List

See also