debug
Only traceback. The rest of the stock debug library stays out of the sandbox.
Functions
debug.traceback
debug.traceback([msg [, level]]) -> string| Name | Type | Description |
|---|---|---|
| msgoptional | any | A non-string comes back unchanged. |
| leveloptional | integer | Default 1. |
msg plus the call stack, like stock Lua.
Pass it to xpcall: xpcall(fn, debug.traceback).