Regular API function


Description Retrieves and clears the last generated stack traceback for a script. See also sim.getLastError and sim.getScriptHandle.
C synopsis
C parameters
C return value
Lua synopsis string stackTraceback=sim.getStackTraceback([int scriptHandle])
Lua parameters
scriptHandle: the script handle from which the traceback is desired. If omitted, then the calling script's traceback will be retrieved and cleared.
Lua return values
the stack traceback, or an empty string