Skip to main content

Module debug

Module debug 

Source
Expand description

Debug logging for MatrixCode operations

Tracks: API calls, compression, memory saves, tool executions

Features:

  • Debug mode toggle: only logs when debug mode is enabled
  • Session-based files: each session gets its own log file
  • Auto rotation: rotates when file exceeds size limit

Structs§

DebugLog
Debug logger that writes to file
DebugStats
Debug statistics

Functions§

debug_log
Get the global debug logger
disable_debug_logging
Disable debug logging
enable_debug_logging
Enable debug logging with optional session ID
is_debug_enabled
Check if debug logging is enabled
set_debug_event_sender
Set event sender for TUI debug panel This allows debug logs to be displayed in the TUI debug panel