A debugging utility mod for modders that provides an in-game UI menu and logging tools to assist with mod development during runtime. Can be added as an optional dependency if desired, or just casually installed in your work env.
Example usage of the logger in your mod's code:
# preload & new() the script, optionally providing a DbgSettings .tresvar dbg := preload("res://mods/DbgUtils/Dbg.gd").new(MOD_ID, self , null)
func _ready() -> void:
dbg.debug("This is a debug message!")
dbg.info("This is an info message!")
dbg.warning("This is a warning message!")
dbg.error("This is an error message!")
dbg.settings.includeTime = true
dbg.settings.includeDate = true
dbg.info("Include timestamps and dates")
dbg.settings.includeFileSource = true
dbg.settings.includeLine = truevar nest1 = func someFunc():
var nest2 = func nFunc():
dbg.info("Add a minimal stack trace")
nest2.call()
nest1.call()
dbg.error("Any BBCode is supported, go [rainbow sat=0.5 speed=0.1][tornado radius=10]🌪crazy🌪[/tornado][/rainbow]!!")