Flags & Debug
debug
$debug
The $debug[] function takes exactly one argument. In this engine its handler ignores the argument and returns an empty string: it does not enable any debug mode.
Syntax
$debug[value]
Parameters
| Parameter | Description |
|---|---|
value |
Required (exactly one argument). Ignored by the engine. |
Return value
An empty string.
Behavior
- The engine does not produce any diagnostic output for this function.
$debugwithout brackets is refused (“Invalid argument count”): one argument is required.
Examples
Simple debug
$debug[on]
$var[result;$calculate[2+2]]
$sendMessage[Result: $var[result]]
Conditional debug
$if[$message[1]==--debug]
$debug[on]
$endif
$sendMessage[Debug argument received (no effect).]
Debug in a complex command
$debug[on]
$var[userData;$getUserVar[xp;$authorID]]
$sendMessage[XP: $var[userData]]
Notes
- For custom logs, use
$log[](one argument, forwarded to the engine’s log callback).
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.