Skip to main content

Aliases

  • debug.getinfo

Arguments

function | number
required
Function or stack level number to inspect.

Returns

table
Metadata table containing func, nups, source, short_src, currentline, what, linedefined, is_vararg, numparams, name, and sizep only for direct Lua function targets.

Example

Read the metadata table for a function or stack level.