Xdebug is the most common used debugger for PHP applications and a must-have for debugging Magento.
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:
- Open the PHP FPM php.ini:
- Go to the end of the file where you find the xdebug configuration:
- Uncomment the following line by removing the semicolon and configure your IP in
- Restart PHP-FPM to apply the changes: