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