Raxol.Debug (Raxol v2.0.1)
View SourceDebug mode utilities and detailed logging for Raxol terminal emulator.
This module provides comprehensive debugging capabilities including:
- Conditional debug logging based on configuration
- Performance timing and profiling
- Terminal state inspection
- ANSI sequence debugging
- Event flow tracing
Summary
Functions
Returns a specification to start this module under a supervisor.
Conditional breakpoint that only triggers in debug mode. Useful for interactive debugging.
Get current debug configuration.
Check if debug mode is enabled for a specific component.
Debug log that only outputs when debug mode is enabled.
Disables debug mode.
Disable debug mode for a component at runtime.
Dump current process state for debugging.
Enables debug mode at the specified level.
Enable debug mode for a component at runtime.
Gets current debug level.
Log ANSI sequence parsing for debugging.
Log event flow for debugging event handling.
Log rendering performance metrics.
Log terminal state for debugging.
Time execution of a function and log the results if debug mode is enabled.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Conditional breakpoint that only triggers in debug mode. Useful for interactive debugging.
@spec debug_config() :: %{ terminal: boolean(), web: boolean(), benchmark: boolean(), parser: boolean(), rendering: boolean(), general: boolean(), log_level: Logger.level() }
Get current debug configuration.
Check if debug mode is enabled for a specific component.
Debug log that only outputs when debug mode is enabled.
@spec disable() :: :ok
Disables debug mode.
@spec disable_debug(atom()) :: :ok
Disable debug mode for a component at runtime.
@spec dump_process_state(atom()) :: :ok
Dump current process state for debugging.
@spec enable(debug_level()) :: :ok
Enables debug mode at the specified level.
@spec enable_debug(atom()) :: :ok
Enable debug mode for a component at runtime.
@spec get_debug_level() :: debug_level()
Gets current debug level.
Log ANSI sequence parsing for debugging.
Log event flow for debugging event handling.
Log rendering performance metrics.
Log terminal state for debugging.
Time execution of a function and log the results if debug mode is enabled.