A quick and easy on-screen logger for debugging in Godot.
Supports log(), warn(), and error() with different styles and colors.
Drop it into your project and stop digging through the output console 👀
- Download and extract the folder into your Godot project directory.
- In the Godot editor, go to:
Project > Project Settings > Autoload - Add the
ViewportDebugPrint.tscnscene:- Set the name to whatever you like (e.g.
Debug) - Click "Add"
- Set the name to whatever you like (e.g.
- That's it — you're ready to go!
You can now call the following global functions anywhere in your code:
Debug.log("This is a regular log")
Debug.warn("This is a warning!")
Debug.error("Something went wrong 😱")P.S. To use these functions, your autoload, must be named "Debug"