Skip to main content

Module debug_cfg

Module debug_cfg 

Source
Expand description

Centralised debug configuration.

All global toggles and knobs that control debug output, diagnostic behaviour, or temporary workarounds live here. When a debug feature is no longer needed, simply flip the default to false : no other code changes required.

Constants§

SERIAL_ENABLED
Master switch to enable/disable serial port output. When false, serial_print! / serial_println! become no-ops and init_serial() is skipped. The serial module is still compiled but produces no output.

Statics§

QUIET_MODE
Master switch to disable all debug output. When true, no serial, VGA, overlay, or status line output is produced. The kernel still runs, but produces zero diagnostic output. Intended for production builds and real hardware bring-up where debug output would slow boot.
VGA_DEBUG_BUFFER
When true, log lines are written into the lock-free circular buffer for async display by the status line task.
VGA_DEBUG_LIVE
When true, every log::info! / log::warn! / etc. is drawn directly to the VGA framebuffer in real time (pixel by pixel, no buffering).

Functions§

is_quiet
Returns true if quiet mode is active (all debug output disabled).
is_vga_debug_buffer
is_vga_debug_live
set_quiet
Enable or disable quiet mode at runtime.
set_vga_debug_buffer
set_vga_debug_live