A customizable and extendable debugger for open source software.
In order to use lumin/debugger you must have the following dependencies installed:
How you can use Parse
to create custom errors.
local Debugger = require(path.to.debugger)
local Logs = {
"Whoops" = "Something bad happened!: %s"
}
Debugger.set({
Logs = Logs,
Name = "Cool Package",
URL = "https://example.com/",
Trace = true,
})
local Result, Err: Debugger.ParsedError = xpcall(function()
error("This is an error...")
end, Debugger.parse)
if not Result then
Debugger.fatal("Whoops", Err.Message) -- Output: Something bad happened!: This is an error...
end
This project is licensed under the MIT license