Cannot attach managed unity debugger to usb-connected hololens when using il2cpp
When I build my app targeting UWP with the il2cpp scripting backend and run it on my local machine, I can attach the managed unity debugger to the running unity instance successfully. However, if I run that same app on device (a hololens connected by usb), no corresponding unity instance shows up when I click "Attach Unity Debugger" in Visual Studio. Anybody have any idea why? Is this supposed to work?
I'm using Unity 2017.3.0b9 and Visual Studio Community 2017 v15.8.9
Answer by JoshPeterson · Nov 29, 2018 at 01:03 PM
The "Attach Unity Debugger" feature uses a TCP connection to do remote debugging, so I don't think that attaching via USB will matter. Some platforms, (e.g. Android) make the USB connection look like a TCP connection. I'm not sure about Hololens though.
Generally though, you will need to have the device you want to debug on the same Wifi or wired network as the machine where Visual Studio is running. Also, make sure you only have one active network connection on the device.
See the documentation for managed code debugging for more details: https://docs.unity3d.com/Manual/ManagedCodeDebugging.html
Your answer
Follow this Question
Related Questions
Unity debugger hangs when using System.Diagnostics.Process 0 Answers
il2cpp/build/il2cpp.exe did not run properly! 5 Answers
Failed running IL2CPP on Android with "error: expected expression" (Unity 2018.1.6) 0 Answers
Failed to compress IL2CPP symbol files in android build 0 Answers
UnityLinker.exe error Android build 0 Answers