The fields of the Lua.lua_Debug structure are listed below. For a complete list of Lua.lua_Debug structure members, see the Lua.lua_Debug Members topic.
![]() | the current line where the given function is executing. When no line information is available, currentline is set to -1. |
![]() | |
![]() | |
![]() | the line number where the definition of the function starts. |
![]() | a reasonable name for the given function. Because functions in Lua are first-class values, they do not have a fixed name: some functions may be the value of multiple global variables, while others may be stored only in a table field. The lua_getinfo function checks how the function was called to find a suitable name. If it cannot find a name, then name is set to NULL. |
![]() | explains the name field. The value of namewhat can be "global", "local", "method", "field", "upvalue", or "" (the empty string), according to how the function was called. (Lua uses the empty string when no other option seems to apply.) |
![]() | the number of upvalues of the function. |
![]() | a "printable" version of source, to be used in error messages. |
![]() | If the function was defined in a string, then source is that string. If the function was defined in a file, then source starts with a '@' followed by the file name. |
![]() | the string "Lua" if the function is a Lua function, "C" if it is a C function, "main" if it is the main part of a chunk, and "tail" if it was a function that did a tail call. In the latter case, Lua has no other information about the function. |
Lua.lua_Debug Class | Tao.Lua Namespace