What do you think of my advance debugger?
Example Script
local Debugger = require(game.ReplicatedStorage.Library.Debugger).new(script.Name);
--== Configuration;
--== Variables;
local player = game.Players.LocalPlayer;
local rootPart = script.Parent:WaitForChild("HumanoidRootPart"); -- StarterCharacterScript
local printTable = {Name="Creator"; Message="What do you think?"};
--== Script;
Debugger:Log("Debugger is running!", "MessageTable:", printTable);
Debugger:Warn("Warning message!")
Debugger.Disabled = true;
while wait(0.1) do
Debugger:Display({Position=tostring(rootPart.Position); Why="Useful for logging changing values."});
end
Debugger:Log(Tuple params) and Debugger:Warn(Tuple params)
bool Debugger.Disabled
Setting Debugger.Disabled to true will disable all logging and warnings for that script.
Debugger:Display(table t)
Nil values will not display. Currently Debugger:Display uses JSONEncode to display the table, any unsupported values should be converted to string first or else it will become nil.
Feel free to use it if you think it may be useful. It’s open source.
Update (03/02/2019)
• Fixed client side infinite yield for RemoteEvent.
• Added DocReader support.
Thanks for reading! ~MXKhronos