I can’t seem to find out the correct way to enable and disable debugDraw (hitbox drawing) from GDJS? Here is my current code:
const rt = runtimeScene;
const rVar = name => rt.getVariables().get(name);
const obj = name => rt.getObjects(name)[0];
const objects = [obj("Debug"), obj("CommandLine"), obj("CommandOutput")];
if (rVar("ShowDebug").getAsBoolean()) {
objects.forEach(name => name.hide(false));
gdjs.evtTools.debuggerTools.enableDebugDraw(true);
} else {
objects.forEach(name => name.hide(true));
gdjs.evtTools.debuggerTools.enableDebugDraw(false);
}
The enableDebugDraw commands won’t work. How do I toggle it?

