summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/debugs.lua8
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