MGT Development Environment - XDebug

Xdebug is the most common used debugger for PHP applications and a must-have for debugging Magento.

File Sync

To use xdebug, you need to sync the files from your host system to the container.

Follow the File Sync to set up a sync between your host system <--> container.


To enable xdebug for e.g. PHP 7.4, do the following:

  1. Open the PHP FPM php.ini:
  1. Go to the end of the file where you find the xdebug configuration:
  1. Uncomment the following line by removing the semicolon and configure your IP in xdebug.client_host.
  1. Restart PHP-FPM to apply the changes:
supervisorctl restart php-fpm7.4


If you are using PhpStorm for the development, you can follow the Debug with PhpStorm: Ultimate Guide.