Debug

debug.traceback

Returns a string with a traceback of the call stack. The optional message string is appended at the beginning of the traceback.

Syntax

traceback([thread,] [message: any [, level: any(1)]])  returns  message: any