Difference between revisions of "inspect.lua"

(Created page with "{{#set:LOVE Version=Any}} {{#set:Description=Pretty-print for Lua.}} Category:Libraries [http://love2d.org/forums/viewtopic.php?f=5&t=2879 Original forum thread ]. Latest ...")
 
 
Line 14: Line 14:
 
It comes with a default "max depth" of 4, in order to avoid "infinite recursion" as well as making its output more intelligible.
 
It comes with a default "max depth" of 4, in order to avoid "infinite recursion" as well as making its output more intelligible.
  
*Do not attempt to use it for saving/restoring tables from a file*. It generates invalid Lua (on purpose). It's a library for debugging and little else.
+
Do not attempt to use it for saving/restoring tables from a file. It generates invalid Lua (on purpose). It's a library for debugging and little else.

Latest revision as of 21:41, 24 April 2011


Original forum thread .

Latest version:

https://github.com/kikito/inspect.lua

inspect.lua will make it easier to debug your tables by generating string representations of them, in a hierarchical way.

It comes with a default "max depth" of 4, in order to avoid "infinite recursion" as well as making its output more intelligible.

Do not attempt to use it for saving/restoring tables from a file. It generates invalid Lua (on purpose). It's a library for debugging and little else.