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.
§Future additions
TRACE_SYSCALLS: log every syscall entry/exitTRACE_CONTEXT_SWITCH: log every task switchVGA_DEBUG_LIVE: real-time VGA framebuffer output (already here)PANIC_SCREENSHOT: dump framebuffer to serial on panicLOG_MM: trace memory allocations
Statics§
- VGA_
DEBUG_ BUFFER - When
true(default), log lines are also written into the lock-free circular buffer (vgabuf) 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_
vga_ debug_ buffer - Returns
trueif buffered VGA output is enabled. - is_
vga_ debug_ live - Returns
trueif live VGA debug output is enabled. - set_
vga_ debug_ buffer - Enable or disable buffered VGA output.
- set_
vga_ debug_ live - Enable or disable live VGA debug output.