Configure debugging

Edit on GitHub
Security

Once debugging is completed, turn off debugging mode. Leaving it permanently enabled can lead to the disclosure of sensitive information.

Currently, Xdebug is not supported, but you can enable extended logs in the deploy file to debug an application. Extended logs provide extra information about application state and behavior.

To enable extended logs:

  1. Edit deploy.*.yml of the desired environment:
docker:
    debug:
        enabled: true
  1. Depending on the environment value of deploy.*.yml, edit the respective config_default.php:
$config[LogConstants::LOG_LEVEL] = getenv('SPRYKER_DEBUG_ENABLED') ? Logger::INFO : Logger::DEBUG;
  1. Commit the changes and deploy the application in the desired environment:

Extended logs are enabled and you can check them in the AWS Management Console. See Working with logs for more details.

Next step

Working with logs