[SOLVED] [editor 2] print to editor when building to target (mobile)

I notice when building for my phone and trying to debug something, nothing gets printed to the editor console, is this possible to do?

If not, what other options do I have to debug it? I have used render text on screen a few times but I would much rather like to read the printing from the editor on my mac.

On an Android device you can maybe use adb

adb logcat -s defold

Wrote a script (for windows but easily converted to mac) that builds a package, uninstall the old one, installs the new one and starts it up and shows the log. Used it when the target functionality was broken a while back.

Ah thanks, I’ll look into that :slight_smile:

You can also use DefCon, my browser based Defold developer console, to both interact with a running Defold instance and to route print() commands to the console: https://github.com/britzl/defcon

1 Like

Cool! I knew about DefCon but not that you can route print() to its console. That sounds even better. Thanks :slight_smile:

1 Like

I just realised that pprint() isn’t routed though. I’ll fix that.