sugar4.debug

Small helpers for gating debug output on SUGAR_DEBUG.

Functions

is_debug_enabled(→ bool)

Evaluate the current state of the debug flag.

debug_print(→ None)

Proxy to print() when debugging is active.

Module Contents

sugar4.debug.is_debug_enabled() bool[source]

Evaluate the current state of the debug flag.

sugar4.debug.debug_print(*args: Any, **kwargs: Any) None[source]

Proxy to print() when debugging is active.