Forest Logo
search
package_2

debug

By @daad

Roblox

Mirrored

Roblox Debug Tool

This module provides simple, configurable debug logging for Roblox projects.

Usage

First, require the debug module:

local Debug = require(path.to.debug.init)

Enable logging for a module

Debug.set("MyModule", true) -- Enable all logging for MyModule

Debug.set("MyModule", { enabled = true, methods = { myMethod = false } })

Debug.set("MyPackage", { -- Set config for a whole module
	MyModule = { enabled = true, methods = { init = true } },
})

Print debug messages

Debug.print("myMethod", "This is a debug message")
Debug.warn("myMethod", "This is a warning")
Debug.error("myMethod", "This is an error")

Output example:

[DEBUG] [MyModule] [myMethod] This is a debug message - MyModuleScript:42
[WARN] [MyModule] [myMethod] This is a warning
[ERROR] [MyModule] [myMethod] This is an error

See init.lua for more configuration options.

Package Details

Install command (Click to copy)


Version

0.0.3

License

MIT

check_circle

Safe for commercial use

infoThe package archive does not include its license text; the license is declared in its manifest metadata.

Automated license review — not legal advice.