DebugFrame:
Filter:
Classes | Core

DebugFrame : Object

A representation of the call frame
Source: Kernel.sc

Description

A representation of the call frame. Can be used to reconstruct a backtrace by using -caller.

An instance can be acquired by calling Object: -getBackTrace. While this is often not useful due to function inlining, it is useful when called on an Exception, see the implementation of Exception: -reportError where a call to Object: -dumpBackTrace can be replaced by a call to Object: -getBackTrace and a call stack constructed manually.

Class Methods

Inherited class methods

Instance Methods

.functionDef

Returns a FunctionDef or a Method of the current function or method.

.caller

Returns another DebugFrame for the function that called this function.

Discussion:

Can be used to make a back trace, but watch out for function inlining.

.args

Returns an Array of the argument's values, if there are no arguments, returns a Nil. This does not contain the argument names, which must be accessed through the -functionDef.

Discussion:

.vars

Same as -args but for the variables.

Discussion:

.address

Returns a RawPointer, rarely useful.

.context

Returns another DebugFrame of the compiling context, rarely useful.

Inherited instance methods

Undocumented instance methods

.asString