The tracestack statement prints the current callstack.
The tracestack statement outputs the current method call history to the Log window. The outputs contain the names of all currently executing methods together with the values of their parameters, local variables and arrays. The tracestack statement is an useful tool when you want to log the call history. Please note, the tracestack statement is available only in the prototyping environment of Embedded Wizard Studio. During the code generation, the statement is replaced by an empty statement. For example:
var bool someCondition = ... ;
// Output the current call history
if ( someCondition )
At the runtime, the above example would produce log entries similar to the following: