Module INSPECT
Debug inspection facility
The INSPECT class provides a number of functions to ease development and debugging.
It mainly consists of an advanced print function that can represent complex data structures (Lua tables) and tag their encoding formats and size. Another spy function prints the same as pass-through.
Info:
- License: MIT
- Author: Kikito github.com/kikito/inspect.lua
Functions
print (object) | Print all contents of a table in a tree representation, works with complex data structures and prints to STDOUT. |
warn (object) | Print all contents of a table to STDERR. |
spy (object) | Print all contents of a table to STDERR and return same object as passthrough. |
Functions
- print (object)
-
Print all contents of a table in a tree representation, works with
complex data structures and prints to STDOUT. (object)
Parameters:
- object complex table data structure
- warn (object)
-
Print all contents of a table to STDERR. Works same way as print.
(object)
Parameters:
- object complex table data structure
- spy (object)
-
Print all contents of a table to STDERR and return same object as
passthrough. Works same way as print.
(object)
Parameters:
- object complex table data structure
Returns:
-
object itself (passthrough for nesting)