# 🐞 Debug

Debug enables to dump information about errors that may be affecting the software functionality. If Chevereto isn't working properly it will require debugging to understand the situation.

# Debug in production

Enable debug at Settings > System > Debug Errors (opens new window). By enabling this Chevereto will debug errors to the screen, but only to administrators.

# Debug in development

In development context debug can be configured using environment variables. Beware when configuring debug this fashion as it will apply to all users of the system.

# XR Debug

XR Debug

👏 Chevereto V4 includes built-in support for XR Debug (opens new window), an Open Source remote debugger also made by us. This enables to easily debug Chevereto without requiring any extra dependency.

XR Debug for Chevereto is mostly for development purposes. However, you can also enable XR Debug (opens new window) server to get live debug messages, enabling you to save/export those for handling it over when requesting help.

# XR Debug Server

XR Debug is a web application. Check the XR Debug Server (opens new window) documentation for the full instructions on running the debug server.

app/vendor/bin/xrserver -p 27420

# Debug level

Note on debug levels

Error level >= 2 is not recommended for production environments. Is not safe to print the errors to the screen, handle it with care.

Level (N) Description
0 No debug
1 (default) Debug to log_device
2 Print errors (no logging)
3 Print errors and log to log_device

Use CHEVERETO_DEBUG_LEVEL=N to configure the debug level.

# Error log device

Use CHEVERETO_ERROR_LOG to customize where error log will be written.


Double-check that the target log device is writable by the user running PHP.

# Finding the logs

This vary depending the server provider and how PHP runs in the server. In doubt, always ask first to your system administrator.

  • XR Debug
    • Streams the debug messages to the XR Debug session
  • Chevereto
    • Logs by default at php://stderr
  • Apache
    • Logs by default at /var/log/apache2/error.log
    • Virtual host directive defines custom error log location
    • Commonly configured for /var/www/domain.com/logs
    • Logs by default at /var/log/nginx/error.log
    • Server block defines custom error log location
    • Commonly configured for /var/www/domain.com/logs
  • cPanel
    • Logs by default at ../domain.com.error.log (parent of public_html folder)
    • Vary a lot from providers and cPanel version
  • Docker
    • Logs to /dev/stderr

# I can't find the logs

You can configure CHEVERETO_DEBUG_LEVEL >= 2 but note that this error reporting level could compromise your installation. Restrict any public access to your website and revert to CHEVERETO_DEBUG_LEVEL=1 as soon as possible.

If you can't find the logs or you are having a hard time with this you can request Extra Support (opens new window) so we can safely debug your installation.