Should I use print() more often?

It’s a good practice. I personally use print_rich() so I can color code my console output. Keep in mind that any console output just doesn’t happen in exported games unless you’ve exported a debug version. So it’s not a great reporting tool for normal users unless you give them a debug version.

If you want something players can use, there are logger Addons such as:

Ther’s also a new logger class you can exercise: How to use the new Logger class in Godot 4.5

I have no idea how useful they are on export without a debug version, but it’s something to look into.

3 Likes