Skip to content

DebugCallResult (Class)

The outcome of a debug_call simulation.

console property

console: list[str]

Output captured from the contract's console.log calls, in execution order.

error property

error: Optional[str]

The script engine error message on failure; None on success.

failure property

failure: Optional[FailureReport]

The source-level failure report (failing statement, call stack, and per-frame variables); None on success or when execution failed before the debug session started (e.g. in the signature script).

function_name property

function_name: str

The entrypoint that was called (resolved to the first ABI entry when function_name was omitted).

success property

success: bool

True if the simulated spend passed script validation.

trace property

trace: Optional[list[TraceStep]]

The per-statement execution trace, in execution order; None unless debug_call was invoked with trace=True. On failure the trace covers the statements up to and including the failing one: the last entry is the failing statement, snapshotted when it was reached.

__repr__

__repr__() -> str