Skip to content

Debuggable

Module defining a protocol for debuggable objects.

debuggable

Module defining a protocol for debuggable objects.

Debuggable

Bases: Protocol

Protocol for objects that can provide detailed debug string representations.

Source code in src/forging_blocks/foundation/debuggable.py
class Debuggable(Protocol):
    """Protocol for objects that can provide detailed debug string representations."""

    def as_debug_string(self) -> str:
        """Return a detailed, multi-line string describing this object for debugging."""
        ...

as_debug_string() -> str

Return a detailed, multi-line string describing this object for debugging.

Source code in src/forging_blocks/foundation/debuggable.py
def as_debug_string(self) -> str:
    """Return a detailed, multi-line string describing this object for debugging."""
    ...