Scripts.getTraceString

機能/意味
Get call stack
タイプ
Scriptsクラスのメソッド
構文
getTraceString(limit=0)
引数
limit  Specify the maximum call depth to get the history. If you omit this argument or specify 0, the history is retrieved as much as possible.
戻り値
String of call history
説明
 Get the call history of the method as a string. You can get the history at the time this method is called.
 To use this method, -debug (debug mode) must be enabled in the command line option. This method returns an empty string if debug mode is disabled.
 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]', for example.