
Publisher
austindoss
Godot Awesome Debug Print
Inspired by https://github.com/gruns/icecream Better debug information using ad.p(arg) rather than print(arg) Awesome Debug returns the input argument so it can be dropped into existing code without issue.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Godot-Awesome-Debug-Print
Inspired by https://github.com/gruns/icecream
Better debug information using ad.p(arg)
rather than print(arg)
Provides the context surrounding your awesome debug print statements to make debug and cleanup easier
Unix timestamp, type information, value, stack information, line number
Awesome Debug returns the input argument so it can be wrapped around existing code without issue
Installation
Godot Awesome Debug Print needs to be enabled as a singleton with name "ad"
Use
Debug print with ad.p(arg)
var myString = "Hello World"
ad.p(myString)
1635267189| string| : Hello World _ready 39 res://Player/player.gd
Add a description to your debug print with ad.d(description, arg)
var myNumber = 10
ad.d("very important number", myNumber)
1635267628| int| very important number: 10 _ready 39 res://Player/player.gd
Performance
Turn off each debug print with ad.off(arg)
or ad.off_d(description, arg)
Enable and disable chunks of debug prints with ad.enable()
and ad.disable()
Awesome Debug continues to return arguments when disabled or off