Regular API function

sim.getStackTraceback

Description Lua only. Retrieves and clears the last generated stack traceback for a script. See also simGetLastError and sim.getScript.
C/C++
synopsis
C/C++
parameters
C/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
Python
synopsis