Debuggers: added some filtering to the API output, but still not good enough.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1177 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
madmaxoft@gmail.com 2013-01-27 02:34:38 +00:00
parent 1a127f5510
commit df0190afd7
1 changed files with 9 additions and 7 deletions

View File

@ -25,6 +25,7 @@ function Initialize(Plugin)
function dump (prefix, a)
for i, v in pairs (a) do
if (type(v) == "table") then
if (GetChar(i, 1) ~= ".") then
if (v == _G) then
LOG(prefix .. i .. " == _G, CYCLE, ignoring");
elseif (v == _G.package) then
@ -32,6 +33,7 @@ function Initialize(Plugin)
else
dump(prefix .. i .. ".", v)
end
end
elseif (type(v) == "function") then
LOG(prefix .. i .. "()")
end