Module gears.debug

Info:

  • Copyright: 2010 Uli Schlachter
  • Release: v3.5.8
  • Author: Uli Schlachter

Functions

assert (cond, message) Check that the given condition holds true, else throw an error
dump_return (data, tag) Inspect the value in data.
dump (data, tag) Print the table (or any other value) to the console.


Functions

assert (cond, message)
Check that the given condition holds true, else throw an error

Parameters:

  • cond If this is false, throw a lua error with a backtrace.
  • message Message to print in the error (optional).
dump_return (data, tag)
Inspect the value in data.

Parameters:

  • data Value to inspect.
  • tag The name of the value.

Returns:

    a string that contains the expanded value of data.
dump (data, tag)
Print the table (or any other value) to the console.

Parameters:

  • data Table to print.
  • tag The name of the table.
generated by LDoc 1.4.3 Last updated 2016-03-11 16:23:53