debug.traceback
Example
Prints the traceback into console.
Output: > print(debug.traceback())...
stack traceback:
lua_run:1: in main chunk
Example
Defines two functions that are later visible in the traceback. Enter "lua_run TracebackTest()" into the development console to achieve exact results.
Output: stack traceback:
lua_run:1: in function 'AnotherTracebackFunction'
lua_run:1: in function 'TracebackTest'
lua_run:1: in main chunk