Skip to main content

Module debug_env

Module debug_env 

Source
Expand description

Boolean NMBRS_DEBUG_* developer switches. Developer debug switches read from NMBRS_DEBUG_*-style env vars.

Each switch is a boolean env flag (nmbrs_workload::boolean): unset or false is off, true is on. A value that isn’t a boolean leaves the switch off and logs a warning naming the canonical spelling, so NMBRS_DEBUG_WIRES=1 never looks like it worked.

Functions§

debug_flag
Read the debug switch name once. Callers on hot paths cache the result in a OnceLock.