File DebugTools.lua
-- Debug Tools -- --
Functions
display (what, numformat, recursion) | Pretty display function will try to print out content of any table. |
indent (num) | Handles indentation |
printable (what, numformat) | Basically like tostring(), except takes a numformat and is a little better suited for working with display(). |
showCaptureGroups () | Function colorizes all matched regex capture groups on the screen. |
showMultimatches () | Prints the content of the table multimatches[n][m] to the screen. |
Functions
- display (what, numformat, recursion)
-
Pretty display function will try to print out content of any table.
Parameters
- what:
- numformat:
- recursion:
Usage:
- display(mytable)
- indent (num)
-
Handles indentation
Parameters
- num:
- printable (what, numformat)
-
Basically like tostring(), except takes a numformat and is a little better suited for working with display().
Parameters
- what:
- numformat:
- showCaptureGroups ()
- Function colorizes all matched regex capture groups on the screen.
- showMultimatches ()
- Prints the content of the table multimatches[n][m] to the screen. This is meant as a tool to help write multiline trigger scripts. This helps you to easily see what your multiline trigger actually captured in all regex. You can use these values directly in your script by referring to it with multimatches[regex-number][capturegroup].