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 andinit_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, everylog::info!/log::warn!/ etc. is drawn directly to the VGA framebuffer in real time (pixel by pixel, no buffering).
Functions§
- is_
quiet - Returns
trueif 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