debug.traceback
Formats a traceback for the current or another thread.
Skips C frames, executor chunk runners and hidden current-thread levels. The walk is bounded to fewer than 200 levels.
debug.traceback(thread: thread?, message: string?, level: number?): stringParameters
| Parameter | Type | Description |
|---|---|---|
thread | thread? | Optional leading target thread. |
message | string? | Optional prefix; numeric string coercion is also supported. |
level | number? | Defaults to 1 for the current thread and 0 for another thread. |
Errors: Negative levels and invalid argument types raise errors.
