Skip to content

DebugVariable (Class)

A variable decoded from the script engine's stacks at a failure site, presented in source-level terms.

display property

display: str

The value formatted for display, following the type (e.g. bytes are hex-encoded, State values render as objects).

name property

name: str

The variable name from the SilverScript source.

origin property

origin: str

Where the variable comes from: local, arg, state (contract field), ctor (constructor argument), or const.

type_name property

type_name: str

The SilverScript type name (e.g. int, byte[4], State).

value property

value: Any

The decoded value as a native Python object (int, bool, bytes, str, list, or dict). None if the value could not be decoded.

__repr__

__repr__() -> str