• Hook to access debug state (read-only) via DebugStateContext. Use this hook when you only need to read debug state without triggering mutations.

    Returns DebugStateContextValue

    The debug state context value.

    If used outside a DebugProvider.

    export function useDebugState(): DebugStateContextValue {
    const context = useContext(DebugStateContext);
    if (context === undefined) {
    throw new Error("useDebugState must be used within a DebugProvider");
    }
    return context;
    }