Home  Contents

debug.traceback

Debug Lua Commands

SYNOPSIS

debug.traceback([thread,][message][,level])

DESCRIPTION

Returns a string with a traceback of the call stack. An optional message string is appended at the beginning of the traceback. An optional level number tells at which level to start the traceback (default is 1, the function calling traceback).

RETURN VALUE

Returns a string with a traceback of the call stack.