File DebugTools.lua

Functions

display (what, numformat, recursion) Pretty display function will try to print out content of any table.
indent (num) This function handles indentation for display function.
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.

Note: This version of display can lead to infinite loop depending on your data. There is also Geyser.display(), which will use only one level of recursion.
Parameters
  • what:
  • numformat:
  • recursion:
Usage:
  • display(mytable)
indent (num)
This function handles indentation for display function.
Parameters
  • num:
See also:
printable (what, numformat)
Basically like tostring(), except takes a numformat and is a little better suited for working with display().
Parameters
  • what:
  • numformat:
See also:
showCaptureGroups ()
Function colorizes all matched regex capture groups on the screen. This is very handy if you make complex regex and want to see what really matches in the text.
See also:
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].
Usage:
  • Just call this s function from your trigger to show the info.
        showMultimatches()
     
See also:

Valid XHTML 1.0!