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
This commit is contained in:
parent
1a127f5510
commit
df0190afd7
@ -25,16 +25,18 @@ function Initialize(Plugin)
|
|||||||
function dump (prefix, a)
|
function dump (prefix, a)
|
||||||
for i, v in pairs (a) do
|
for i, v in pairs (a) do
|
||||||
if (type(v) == "table") then
|
if (type(v) == "table") then
|
||||||
if (v == _G) then
|
if (GetChar(i, 1) ~= ".") then
|
||||||
LOG(prefix .. i .. " == _G, CYCLE, ignoring");
|
if (v == _G) then
|
||||||
elseif (v == _G.package) then
|
LOG(prefix .. i .. " == _G, CYCLE, ignoring");
|
||||||
LOG(prefix .. i .. " == _G.package, ignoring");
|
elseif (v == _G.package) then
|
||||||
else
|
LOG(prefix .. i .. " == _G.package, ignoring");
|
||||||
dump(prefix .. i .. ".", v)
|
else
|
||||||
|
dump(prefix .. i .. ".", v)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
elseif (type(v) == "function") then
|
elseif (type(v) == "function") then
|
||||||
LOG(prefix .. i .. "()")
|
LOG(prefix .. i .. "()")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
dump("", _G);
|
dump("", _G);
|
||||||
|
Loading…
Reference in New Issue
Block a user