Get information about the call stack.

Static variables

staticmapPosition:(String, Int) ‑> Null<{source:Null<String>, originalLine:Null<Int>}>

Available on php

If defined this function will be used to transform call stack entries.

Parameters:

String
  • generated php file name.
Int
  • Line number in generated file.

Static methods

@:has_untyped@:keep@:keepstaticcallStack():Array<StackItem>

Return the call stack elements, or an empty array if not available.

@:has_untyped@:keep@:keep@:noDebugstaticexceptionStack():Array<StackItem>

Return the exception stack : this is the stack elements between the place the last exception was thrown and the place it was caught, or an empty array if not available.

@:keep@:keepstatictoString(stack:Array<StackItem>):String

Returns a representation of the stack as a printable string.