Scripts.getTraceString

Function/Meaning
Get call stack trace
Type
Method of the Scripts class
Syntax
getTraceString(limit=0)
Arguments
limit Specifies the maximum call depth for retrieving the history. If this argument is omitted or 0 is specified, it retrieves as much history as possible.
Return Value
The call stack trace as a string
Description
Retrieves the method call history as a string. You can get the history at the point where this method is called.
To use this method, -debug (debug mode) must be enabled in the command line options. If debug mode is disabled, this method returns an empty string.
The returned string is something like 'messagelayer.tjs(1561)[(function) addButton] <-- mainwindow.tjs(4463)[(function expression) (anonymous)] <-- conductor.tjs(427)[(function) onTag] <-- conductor.tjs(95)[(function) timerCallback]'.