Module sv_debug

Debug System

Functions

Print (addonName, ...) Print function.
GetDebug (addonName) GetDebug function.

Commands

setdebug SetDebug Command.


Functions

Print (addonName, ...)
Print function. This function prints a message to the console.

Parameters:

  • addonName The addon name. string
  • ... The message. any

Usage:

    exports.jones_util:Print("jones_util", "Hello World")
GetDebug (addonName)
GetDebug function. This function gets the debug state of an addon.

Parameters:

  • addonName The addon name. string

Returns:

    boolean

Usage:

    local debug = exports.jones_util:GetDebug("jones_util")

Commands

setdebug
SetDebug Command. This command sets the debug state of an addon.

param:

  • addonName The addon name. string
  • enabled The debug state. boolean
  • src The player to send the debug state to. number

Usage:

    /setdebug jones_util true
generated by LDoc 1.5.0 Last updated 2024-05-13 19:05:24