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,InternetClientServerarechecked
Build Settings:
Build Conf is
ReleaseArchitecture is
ARM64Copy References,Development Build,Script Debugging,Wait For Managed Debuggerarechecked
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 debuggerand 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?
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).did you select the one from your device's IP? if it is not listed you can still try and explicitely search for it via IP manually ->Input IP