https://docs.unity3d.com/Manual/AttachingMonoDevelopDebuggerToAnAndroidDevice.html
- desktop has to be on the same WiFi as device
- might have to switch off firewall
- connect device via USB
cd %LOCALAPPDATA%\Android\Sdk\platform-tools
adb tcpip 5555
should outputrestarting in TCP mode port: 5555
- if not dis-/reconnect device
- find device IP
adb shell ifconfig wlan0
- or
Settings -> System -> About phone -> Status
adb connect $DEVICE_IP
adb devices
- should show
List of devices attached $DEVICE_IP:5555 device`
- build and run
Development Build
checkedScript Debugging
checked
- Visual Studio:
Debug -> Attach Unity Debugger
- select device