AcediaDocumentation

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?): string

Parameters

ParameterTypeDescription
threadthread?Optional leading target thread.
messagestring?Optional prefix; numeric string coercion is also supported.
levelnumber?Defaults to 1 for the current thread and 0 for another thread.

Errors: Negative levels and invalid argument types raise errors.

On this page