I am having a problem using the mono develop debugger with an Android device - Asus ZenPad with lollipop 5.0
I have seen some threads where others have had trouble attaching to the device etc, but that part is working just fine. I am able to attach and the app is running just fine on the device. However, when I place a breakpoint the app freezes as if it has hit the breakpoint, but the breakpoint is never highlighted and I’m not able to step through the code from there.
If I then remove the breakpoint, the app will unfreeze and continue running normally. Is there something I am missing process or settings wise ?
I have Development Build and Script Debugging checked in build settings.
On the device I have USB debugging enabled. And have tried without that enabled - thinking that maybe i need to use wifi ?!!? Same thing occurs both ways.
Is it possibly an adb setting ? I have followed all the advice I have seen in other posts, and I have no problem attaching process as others have. My device shows up with correct IP etc.
I am building on a macbook pro with el capitan version of OSX.
Any help or ideas that anyone can suggest would be greatly appreciated at this point.
Thanks for the response. Yes, my IP is showing up just fine.
Tried the new mono develop and get the exact same outcome. I can literally pause/unpause the game on the device by just dropping a breakpoint in the Update method. It just doesn’t allow me to step through , check variables etc.
I don’t have another Android device to test on at this time.
I’m trying to come up with other suggestions… the ZenPad is an Intel based device (it has an x86 based CPU), right ?
Are you building your game using ARM, or FAT (ARM + x86) ?
I know that some devices offer a translation layer (called libhoudini) that allows ARM apps to execute on x86 devices. Maybe (just a wild guess), if that is the case here, there may be issues with attempting to debug the code there. Just a wild guess, but that’s what i have for now
Yes, I am building with the device filter set as Fat(ARMv 7 + x 86)
ZenPad is intel based. I have been wondering if that might be the issue potentially. If so, was hoping someone could say definitively. (it would seem to be something that could be said definitively if that was the case)
"Your Unity app will run on an Intel ATOM device. You can’t use USB debugging directly from Unity though. To debug on an Intel ATOM device, you have to make a build of the app, and then transfer the app to the device manually. You can do this many ways: ADB transfer, Bluetooth, dragging the app into the storage of your device and use the device’s File Manager to install the app, there are probably also tons of file sharing apps on the Play Store that could be used.
So, it’s certainly possible to use an ATOM device to develop Unity apps."
I will try this method instead of build and run from the Unity Editor and see if that makes a difference.