how can I get name of function params #803
-
Im developing my luau debugger vscode extension |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When building Luau bytecode, don't forget to set This will store the required debug information that can then be found in You can then use the same methods you use in Lua like |
Beta Was this translation helpful? Give feedback.
When building Luau bytecode, don't forget to set
debugLevel
to 2 in compilation options.This will store the required debug information that can then be found in
locvars
array of a Lua functionProto
object.That array contains the function arguments at the start followed by all the other locals.
You can then use the same methods you use in Lua like
lua_getinfo
for argument count andlua_getlocal
for names and values (placed on top of the stack!)