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("Cool Package", Logs)

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: Something bad happened!: This is an error...
end

License

This project is licensed under the MIT license