Skip to content

A customizable and extendable debugger for open source software.

License

Notifications You must be signed in to change notification settings

lumin-org/debugger

Repository files navigation

lumin/debugger

package build discord

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 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

License

This project is licensed under the MIT license