(function () {
function getBacktrace (command, interpreter) {
var i, frame, str = "", len = interpreter.callStack.length
for (i = 0
frame = interpreter.callStack[i]
str += " " + frame.sceneId+":" + frame.scenePath +
":" + frame.index + ":" + frame.currentElement + "<br/>"
}
str += " > " + interpreter.sceneId + ":" + interpreter.scenePath +
":" + interpreter.index + ":" + interpreter.currentElement + "<br/>"
interpreter.runVars["backtrace"] = "" + str
return {
doNext: true
}
}
WSE.commands.getBacktrace = getBacktrace
}())