if I use the python external API to call "sim.setObjectName()" with the incorrect arguments the stack trace output is:
Code: Select all
Lua runtime error: [string "CHILD SCRIPT remoteApiCommandServer"]:51: The function requires more arguments. (sim.setObjectName) stack traceback: [C]: in function 'setObjectName' .../workspaceAnalysis/pyvrep/scenes/lua/createRobot.lua:51: in function 'createJoint' .../workspaceAnalysis/pyvrep/scenes/lua/createRobot.lua:68: in function <.../workspaceAnalysis/pyvrep/scenes/lua/createRobot.lua:59> Error: [string -unknown location]:?: Call failed. (simCallScriptFunctionEx on createJointEx@remoteApiCommandServer)
['Object does not exist. (simGetObjectHandle)', 'Error in script function. (simCallScriptFunctionEx)']
The error is technically correct, but not very useful for debugging compared to the stack trace.
I've also tried looked into looking at the terminal output of the process that was used to launch vrep.sh, but the stack trace is not printed there.
Is is possible to get the stack trace through the external API or terminal stdout?