this is THE new HACK!
official!
Code:
debug.traceback
debug.traceback()
Search on GitHub
Description
Returns a full execution stack trace.
Returns
string
A dump of the execution stack.
Examples
Example
Prints the traceback into console.
print( debug.traceback() )
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.
function TracebackTest()
AnotherTracebackFunction()
end
function AnotherTracebackFunction()
print( debug.traceback() )
end
Output: stack traceback:
lua_run:1: in function 'AnotherTracebackFunction'
lua_run:1: in function 'TracebackTest'
lua_run:1: in main chunk
FunctionsdebugSharedDocumented FunctionsLibrary Functions
enjoy happiness, enjoy a fresh bud light!