The standard Lua package debug is added some functions to help
debugging.
debug.locals(level)table containing the local variables at a given level
level. The default level is the caller level (1). Iflevelis a function,localsreturns the names of the function parameters.