Debug Helper
June 9, 2020

Debugging is a really fun activity, isn't it? Often we require some extra tools to aid in this process. Maybe by dumping a bunch of text into the screen or drawing some extra lines. This addon is meant to bring some little scripts to help with those.

Activating the "Debug Helpers" addon will automatically add the scripts into the auto-load list. The default name to reference them will be mentioned in the specific "sub-addon" topics. Nevertheless, if you prefer you can manually add those scripts to the singleton list instead of activating the plugin.

Script: overlayinfo.gd

This script is meant to be part of the auto-load list, meaning that its functionality will be accessible from wherever in the code. Basically it provides a few functions to add/remove text into/from the screen using the Label Control widget. Those are added into a panel that expands/shrinks according to the contents. This panel is, by default, black with some transparency set just so text is more easily readable. This color (and transparency) can be changed.

By default this script will be named OverlayDebugInfo and it's the name that will be used throughout the rest of this topic.

Script: line3d.gd

As with the overlayinfo.gd script, once this one is in the auto-load list, the functionality can be accessed.

By default this script will be named DebugLine3D and it's the name that will be used throughout the rest of this topic.

Introduction
Previous12345
6
78910Next