Debugging
On this page
While you’re working on a custom extension you’ll probably don’t get it right on the first shot. We have build a debug extension helping you to see exceptions and add your own debug messages.
Activate debug mode
Open Login Page Editor in WebAdmin, in the tab Page
In Debug Mode your login page will get an appended area where these outputs are shown.
Logging
Inside your custom code you can use this logging methods 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);
}