diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2008-01-10 08:57:34 +0000 |
---|---|---|
committer | Natanael Copa <natanael.copa@gmail.com> | 2008-01-10 08:57:34 +0000 |
commit | 24f9e6882e2b9a1d15c1df7eda47dd8990975c32 (patch) | |
tree | f99053d9f21091060f700b5fa7e2a492bbacbea1 /lib/debugs.lua | |
parent | ff255b2c762caa6155a737ca46c0045050508a84 (diff) | |
download | acf-core-24f9e6882e2b9a1d15c1df7eda47dd8990975c32.tar.bz2 acf-core-24f9e6882e2b9a1d15c1df7eda47dd8990975c32.tar.xz |
added serialize() function
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@523 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/debugs.lua')
-rw-r--r-- | lib/debugs.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/debugs.lua b/lib/debugs.lua index c169659..f8aeb89 100644 --- a/lib/debugs.lua +++ b/lib/debugs.lua @@ -2,6 +2,8 @@ module(..., package.seeall) +require("session") + -- This will show all tables and their values as debug information -- -- USAGE: <? @@ -60,5 +62,9 @@ function variables ( view ) return debuginfo end - +function serialize(vars) + io.write("<pre>\n") + io.write(session.serialize("", vars)) + io.write("\n</pre>") +end |