Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug unity3d on Android/iOS device?

Unity 5.2.3f1 , VS2015 community edition, Windows 10

What I have already done:

1-built and run the app on windows... everything works fine

2-built for android and deployed the apk on my Samsung Galaxy S3 (using usb cable)...works, but can not debug... seems usb debugging is still not an option

(developper mode already activated on device, "development build" and "script debugging" are both checked)

3-used adb commands for wifi debugging:

adb tcpip 5555 
adb connect [device ip adress without brackets]:5555

device connects as by using

adb devices 

I see my device in the list

4-disconnected USB cable

5- when the game is launched on device, I can see the i-9300 instance of unity in the selection box

6-I choose it and then VS becomes irresponsive... and I need to terminate the program using task manager

any suggestions?

like image 683
kavehmb2000 Avatar asked Jul 19 '26 09:07

kavehmb2000


1 Answers

You could export the project as Google project from the build settings. Then from there you can open it in Eclipse or android studio and finally when you run from those IDE onto the device. you can check the debug console. Unity debug should appear there as well.

Same applies to iOS, it is just made more simple, build for iOS, run in xcode onto device, debug shows in console section of xcode.

like image 173
Everts Avatar answered Jul 22 '26 01:07

Everts



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!