CallStackGet()

Returns the context (stacktrace) of the current position.

CallStackGet( type=string, offset=number, maxFrames=number );

Returns: any

Argument Description Default
type
string, optional

the type of the returned value, possible values are:

  • array
  • string
  • html
  • json

array

offset
number, optional

the number of frames to skip, default is 0

0

maxFrames
number, optional

the maximum number of frames to return, default is 0 which means all

0

Examples

dump(CallStackGet("string"));
dump(CallStackGet("json"));
dump(CallStackGet("array"));
dump(CallStackGet("html"));

See also