getStackTrace()

Returns a dynamic string with the stack trace (call stack) from this position of the code.

Synopsis

dyn_string getStackTrace();

Parameters

Parameter Meaning
-

Return value

Call stack

Description

Returns a dynamic string with the stack trace (call stack) from this position of the code. In case of a program failure or other problems the stack trace helps to retrace the calling cascade of the program.

Example

main()
{
  foo(3);
}
foo(const int &i)
{
  DebugN(getStackTrace());
  // Returns foo(const int & i = 3) at
  <ScriptName>:<Line>
} 

Assignment

Miscellaneous functions

Availability

CTRL