--Show various debug information module(..., package.seeall) require("session") -- This will show all tables and their values as debug information -- -- USAGE: function variables ( view ) debuginfo = [[

DEBUG INFO: THIS VIEW CONTAINS THE FOLLOWING VARIABLES/TABLES

------------ START DEBUG INFORMATION ------------
]] --print ("") for a,b in pairs(view) do if not (type(b) == "table") then debuginfo = debuginfo .. "" .. a .. ": >" .. b .. "<
" else debuginfo = debuginfo .. "" .. a .. ":...
" for c,d in pairs(view[a]) do if not (type(d) == "table") then debuginfo = debuginfo .. " { " .. c .. ": >" .. d .. "< }
" else debuginfo = debuginfo .. " { " .. c .. ":...
" for e,f in pairs(view[a][c]) do if not (type(f) == "table") then debuginfo = debuginfo .. " { { " .. e .. ": >" .. f .. "< } }
" else debuginfo = debuginfo .. " { { " .. e .. ":...
" for g,h in pairs(view[a][c][e]) do if not (type(h) == "table") then debuginfo = debuginfo .. " { { { " .. g .. ": >" .. h .. "< } } }
" else debuginfo = debuginfo .. " { { { " .. g .. ":...
" for i,j in pairs(view[a][c][e][g]) do if not (type(j) == "table") then debuginfo = debuginfo .. " { { { { " .. i .. ": >" .. j .. "< } } } }
" else debuginfo = debuginfo .. " { { { " .. i .. ":...
" for k,l in pairs(view[a][c][e][g][i]) do if not (type(l) == "table") then debuginfo = debuginfo .. " { { { { { " .. i .. ": >" .. l .. "< } } } } }
" end end end end end end end end end end end a,b,c,d,e,f,g,h,i,j = nil,nil,nil,nil,nil,nil,nil,nil,nil,nil end debuginfo = debuginfo .. "------------ END DEBUG INFORMATION ------------
" return debuginfo end function serialize(vars) io.write("
\n")
	io.write(session.serialize("", vars))
	io.write("\n
") end