So, for that, you need to:
- Set up Unity to Build in Developer mode
- File - Build Settings - Development Build
- Run Device - choose the device that is connected via USB, my example Lenovo A7010
- Script Debugging
- Build and Run
- Console - Choose "Android Player (XXXX)"
- Wait until your game starts into your device
- Set up Visual Studio 2017
- Debug - Attach Unity Debugger
- Your devices must be showed in the list, choose it.
- Now, you just need to put breakpoints to stop the game and debug what you want.
----------------------------------------------------------------------------------------------
Problem: The build freezes at the last part of the process: copying apk package when using "Build and Run". The solution is:
- Changed the USB port (front to back por of the PC)
- or Delete the app in the cellphone
I used "c:\adb>adb install -r Minigames.apk" to try to send the apk by command line, but it was not going.
Nenhum comentário:
Postar um comentário