My problems is:
- Profiler shows nothing;
- Console shows nothing;
- Debugging isn't possible;
And in the same time:
- debugging works well on "Run" in editor
- I'm able to install app from Unity ("Debug and run")
What I have done:
- On the phone I have enabled Debugging(checked checkboxes: "stay awake", "USB debugging", "Install via USB", "USB Debugging(Security settings)")
- ADB usb driver is installed
- "Revoke USB Debugging Access" also tried to press.
- Computer and phone restarted few times.
- Unity build settings is:
Development build; Autoconnect profiling; scripts debugging;is enabled - USB configured to PTP connection on the phone. [But MTP I have also tried]
ADB can see the phone without any issues:
C:\Users\UKS2\AppData\Local\Android\Sdk\platform-tools> adb devices List of devices attached a616d3d10204 device
Additional information:
- Result of "adb logcat -s Unity" from cmd shows full log from the phone in realtime;
- Visual Studio: Debug-> Attach Unity Debugger - shows only local PC, but not the phone
- In case of connetion via WiFi (but not USB cable) and manually configured IP adress
there is possible to look at device console log and to see profiler results. BUT it's not possible to debug from the phone.
What did I miss?
I think that Unity for some reason trying to connect to the phone by some incorrect way/adress/port after app install. But how to fix this? And why it's have no problems in install app process in this case?
