debug.info
Returns selected function information as multiple values.
Options preserve order: s source, l line, n name, f function, a parameter count followed by a vararg boolean. Supports info(function, options), info(level, options) and info(thread, level, options). An unreachable level returns no values.
debug.info(thread: thread?, subject: function | number, options: string): ...anyParameters
| Parameter | Type | Description |
|---|---|---|
thread | thread? | Optional leading thread when inspecting a stack level. |
subject | function | number | Function or stack level. |
options | string | Unique option letters: s, l, n, f, a. |
Errors: Unknown or duplicate options and negative levels raise errors.
