Debugging
On this page
In order to debug an extension we have added a Debugger to help catch exceptions and adding custom debug messages.
Activate debug mode
Open Login Page Editor in WebAdmin, in the tab Page
In Debug Mode an extra debug log will be displayed on the Login Page.
Logging
Inside custom code these logging methods can be used to get debug log output.
// a debug message
$this->logInfo("Your debug message goes here");
// a highlighted warning message
$this->logWarning("Your warning goes here");
// an error message with optional exception in a try-catch block.
// the stack trace of the exception will be shown too.
try {
// ...
} catch (\Throwable $exception) {
$this->logError("Your warning goes here", $exception);
}