{"id":"daad/debug","name":"debug","scope":"daad","platform":"roblox","description":"Mirrored from the Wally registry.","version":"0.0.3","latest":"0.0.3","versions":["0.0.2","0.0.3"],"license":"MIT","licenseRating":"safe","licenseCaveats":["The package archive does not include its license text; the license is declared in its manifest metadata."],"licenseVerified":false,"dependencies":{},"integrity":"ac6cc475ea33cc4ef04201af6dea95cd813cb6140cbf1bd642c25fa91acc1c27","likes":0,"downloads":0,"install":"forest install daad/debug","url":"https://forest.dev/p/roblox/daad/debug","files":"https://api.forest.dev/ai/package/roblox/daad/debug/files","readme":"\r\n# Roblox Debug Tool\r\n\r\nThis module provides simple, configurable debug logging for Roblox projects.\r\n\r\n## Usage\r\n\r\nFirst, require the debug module:\r\n\r\n```lua\r\nlocal Debug = require(path.to.debug.init)\r\n```\r\n\r\n### Enable logging for a module\r\n\r\n```lua\r\nDebug.set(\"MyModule\", true) -- Enable all logging for MyModule\r\n\r\nDebug.set(\"MyModule\", { enabled = true, methods = { myMethod = false } })\r\n\r\nDebug.set(\"MyPackage\", { -- Set config for a whole module\r\n\tMyModule = { enabled = true, methods = { init = true } },\r\n})\r\n```\r\n\r\n### Print debug messages\r\n\r\n```lua\r\nDebug.print(\"myMethod\", \"This is a debug message\")\r\nDebug.warn(\"myMethod\", \"This is a warning\")\r\nDebug.error(\"myMethod\", \"This is an error\")\r\n```\r\n\r\nOutput example:\r\n\r\n```\r\n[DEBUG] [MyModule] [myMethod] This is a debug message - MyModuleScript:42\r\n[WARN] [MyModule] [myMethod] This is a warning\r\n[ERROR] [MyModule] [myMethod] This is an error\r\n```\r\n\r\nSee `init.lua` for more configuration options.\r\n","readmeTruncated":false}