this post was submitted on 06 Jul 2023
9 points (90.9% liked)

Godot

5916 readers
11 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

[email protected]

Credits

founded 1 year ago
MODERATORS
 

On Windows: Open a command prompt, and type:

adb shell

Then,

adb logcat | grep godot

On Mac/Linux:
Open a terminal, and type:

adb logcat | grep godot

This will show your console in realtime. To exit, just press CTRL + C.

I've seen some people say to use the appname, like your.app.name.
If you use just your appname, you will get info about your app, but you won't get any print statements. Because print statements are only prefixed with "godot" and not your app name for some reason.
What I do is try to include "godot" in my appname, so that I get the best of both worlds.
The appname is in Export > Options > Package > Unique Name

EDIT:
You can debug Android Godot apps inside the Godot Editor just like normal Godot games by checking:
Debug > Deploy with Remote Debug
Next time you run the project on your Android device, print statements and other info will show up in the Godot Editor.

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 2 points 1 year ago

I know for unity you can filter using adb logcat -s Unity (which works in windows as well), I guess it would be adb logcat -s Godot for godot

[โ€“] [email protected] 1 points 1 year ago

Or install termux and run logcat in a shell on the Android directly?