Aliases

  • getinfo

Arguments

function | number
required
The function to inspect, or a positive stack level identifying a caller.

Returns

DebugInfo
Function metadata including source, name, line numbers, parameter/upvalue counts, and func.
See DebugInfo below. Many selectors use positive stack levels; do not assume stack numbering is identical across all debug APIs. Related types: Debug types & behavior.

Example