Since I have implemented an AST-Lua syntax pretty converter in the LivetextTool, I cost another night to implement my own lua data dumper, so that can be used for debugging the mod. It's customized to my needs, which is more easy to use than "datadumper" and "inspect" lib that you can be find on the github. Especially enhanced on pretty printing and function dump.
the url is:
https://github.com/Enzojz/luadump
usage:
place the script under res/script
local dump = requiere "luadump"
then call dump(fnSwitch)(your variables, from one to many)
the parameters after dump(fnSwitch) is a bool, if you set printFn to true, the function signature in will be printed, if not they are ignored. by default it's false, so call dump()(...) directly.
hope you like it