Skip to main content

别名

  • debug.getinfo

参数

function | number
必填
Function or stack level number to inspect.

返回值

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

示例

Read the metadata table for a function or stack level.