-
I want to get information about all of the functions in an environment without using getfenv because getfenv disables some script optimizations
-
The problem is I can’t find any way to do this, I’ve tried using debug.info but I’m pretty sure it can only give information about a single function not all functions in an environment
-
I’ve tried looking on the developer forum but I couldn’t find anything that works.
This is what I want to achieve:
local env = getfenv(0)
for _, v in env do
if typeof(v) == "function" then
debug.info(v, "snlaf")
end
end