Skip to content

FailureFrame (Class)

One frame of a failure report: a function on the (inlined) call stack at the point the script failed, with the variables in scope there.

function_name property

function_name: str

The function executing in this frame.

line property

line: Optional[int]

1-based source line: the failure site for the innermost frame, the call site for caller frames. None when no source mapping exists.

variables property

variables: list[DebugVariable]

The variables in scope in this frame (locals, arguments, contract state, and constructor arguments; constants are omitted).

__repr__

__repr__() -> str