So there are a lot of guides for this topic, like:
And I set up my project like described in those guides.
Project Settings>Player:
- Scripting Backend is
IL2CPP
- Api Compatibility Level is
.NET 4.x
- The capabilities
PrivateNetworkClientServer
,InternetClientServer
arechecked
Build Settings:
Build Conf is
Release
Architecture is
ARM64
Copy References
,Development Build
,Script Debugging
,Wait For Managed Debugger
arechecked
VS|HoloLens:
- is connected via
Wifi (not usb)
- after deployment and start of the application I get the notification to start debugging, which I do. I open a script, that I want to debug, in unity which leads to a new instance of VS where I go to
Debug>Attach unity debugger
and choose one instance of my process (I get only one process, some ppl have more than one).
Issue:
- I placed some brakepoints an they get not triggered. I dont know why.
- Second question I have is - If this debugging would work, would it be possible to debug/step through code that is wrapped in a macro like #if UWP or WINMD?