DebugHelper (Daigoro)

I released a “DebugHelper” package.
If your script has a Debug property, you can use self:Debug(function() print(“test”) end) and it will execute the function only if self.properties.Debug and DebugHelperScript.properties.Debug are enabled.

If you want to use this in an Init() function, you need to put it into a self:Schedule() because it needs one frame to be initialized first.

2 Likes