debug
class debug
| internal |
Utility functions for debugging, tracing, and logging.
Methods
static void
trace(string $message = '', debug_mode $level = debug_mode::NORMAL)
Outputs a debug message if the specified debug level is enabled in Moodle configuration.
static void
trace_exception(Throwable $exception, debug_mode $level = debug_mode::NORMAL)
Traces a detailed exception report including stack trace and Moodle-specific properties.
Details
at line 43
static void
trace(string $message = '', debug_mode $level = debug_mode::NORMAL)
Outputs a debug message if the specified debug level is enabled in Moodle configuration.
at line 58
static void
trace_exception(Throwable $exception, debug_mode $level = debug_mode::NORMAL)
Traces a detailed exception report including stack trace and Moodle-specific properties.