How to debug Android apps?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By azurvii
:warning: Old Version Published before Godot 3 was released.

Is it possible to debug apps running on Android through Godot tools? (hint: I’m not an experienced android dev, and I don’t know much about doing this without Godot either)

When my app is running on an Android, it fails almost surely when I add in a feature, which presumably was due to Android permission. The problem I have is that I don’t know on which permission the app was dying.

In that case, you need to see adb logs.
You can see logs with android-sdk-windows/tools/monitor.bat

volzhs | 2016-05-23 14:11

:bust_in_silhouette: Reply From: duke_meister

In an app I’m working on I have a screen to which I output debug messages and it can be accessed via a button that’s only available in debug builds (which can be checked for in GDScript). This won’t work if the app force closes however. Another approach might be to output a text log file.

:bust_in_silhouette: Reply From: volzhs

There is a task for this.

Probably, you can debug android app more easily when 2.1 out.

You need to use android-sdk-windows/tools/monitor.bat for now.

Thanks for the note. i’ll give tools/monitor a try.

azurvii | 2016-05-28 13:57

:bust_in_silhouette: Reply From: vannongtinh

In case someone wants this.
I check deploy with remote debug in Debug → deploy with remote debug
In my android phone I turn on Debug in Developer options

This should be the answer.

Ram | 2020-03-29 20:14

:bust_in_silhouette: Reply From: DavidPeterWorks

Check out this.
http://codetuto.com/2016/06/godot-engine-remote-debug-live-edit/