AcediaDocumentation

DebugInfo

Metadata returned by debug.getinfo.

Fields

MemberType / signatureMeaning
sourcestringSource/chunk marker.
short_srcstringShort source label.
namestringDebug name, or a fallback label.
whatstringC or Lua.
currentlinenumberAlways -1 in the inspected implementation.
nupsnumberUpvalue count.
numparamsnumberFixed parameter count.
is_varargnumberVararg flag in the inspected implementation.
linedefinednumberProto definition line, or -1 when unavailable.
funcfunctionInspected function.

Use debug.info when you need selected values as a tuple. Treat unavailable line/name information as metadata absence rather than an execution failure.

On this page