-- -- $Header$ -- require'dump' -- mark the global table as seen dump(_G, nil, function () end) t={__name='t'} dump(t) dump(_G, '_G') -- -- attempting to find more stuff of interest..... -- function dump_info() for lvl = 0, 10000 do local info = debug.getinfo(lvl) if not info then break end dump(info, ('finfo%d.'):format(lvl)) for i = 0, 1000 do zz = debug.getlocal(0, i) if zz then print('zz', zz) if type(zz) == 'table' then dump(zz, 'getlocal.') end end end local f = info.func if f and type(f) == 'function' then print(f, 'ups') for i=0, 1000 do zz = debug.getupvalue(f, i) if zz then dump(zz, ('%s.upval.'):format(info.name)) end end end end end