dd(mixed ...$vars): void
Prints out debug information about given variable and dies.
Only runs if debug mode is enabled. It will otherwise just continue code execution and ignore this function.
mixed
...$vars
Variables to show debug information for.
voiddebug(mixed $var, bool|null $showHtml = null, bool $showFrom = true): mixed
Prints out debug information about given variable and returns the variable that was passed.
Only runs if debug mode is enabled.
mixed
$var
Variable to show debug information for.
bool|null
$showHtml
optional
If set to true, the method prints the debug data in a browser-friendly way.
bool
$showFrom
optional
If set to true, the method prints from where the function was called.
mixedThe same $var that was passed
stackTrace(array<string, mixed> $options = []): void
Outputs a stack trace based on the supplied options.
depth - The number of stack frames to return. Defaults to 999args - Should arguments for functions be shown? If true, the arguments for each method call
will be displayed.start - The stack frame to start generating a trace from. Defaults to 1array<string, mixed>
$options
optional
Format for outputting stack trace
voidInterface for error logging handlers.
Used by the ErrorHandlerMiddleware and global error handlers to log exceptions and errors.
Interface for PHP error rendering implementations
The core provided implementations of this interface are used by Debugger and ErrorTrap to render PHP errors.
Interface ExceptionRendererInterface
Provide custom logging and error handling.
Debugger extends PHP's default error handling and gives simpler to use more powerful interfaces.
Log errors and unhandled exceptions to Cake\Log\Log
Entry point to CakePHP's error handling.
Using the register() method you can attach an ErrorTrap to PHP's default error handler.
When errors are trapped, errors are logged (if logging is enabled). Then the Error.beforeRender event is triggered.
Finally, errors are 'rendered' using the defined renderer. If no error renderer is defined in configuration
one of the default implementations will be chosen based on the PHP SAPI.
Entry point to CakePHP's exception handling.
Using the register() method you can attach an ExceptionTrap to PHP's default exception handler and register
a shutdown handler to handle fatal errors.
When exceptions are trapped the Exception.beforeRender event is triggered.
Then exceptions are logged (if enabled) and finally 'rendered' using the defined renderer.
Stopping the Exception.beforeRender event has no effect, as we always need to render
a response to an exception and custom renderers should be used if you want to replace or
skip rendering an exception.
If undefined, an ExceptionRenderer will be selected based on the current SAPI (CLI or Web).
Represents a fatal error
Object wrapper around PHP errors that are emitted by trigger_error()