fballiano / docker-magento2

Cluster ready Magento2 + Varnish 7 + PHP 8.1 + Redis 6.2 + Elasticsearch 7.17 + SSL
354 stars 164 forks source link

XDebug Setup #23

Open alexmarkop opened 5 years ago

alexmarkop commented 5 years ago

Hello and thank you for the excellent work!

Any tips on how to setup XDebug on this infrastructure? I think it is a usefull addition, especially when using this composition for development.

Thanks in advance!

fballiano commented 5 years ago

Hi @alexmarkop, you can

pecl install xdebug && docker-php-ext-enable xdebug

inside the apache container, I wouldn't add the xdebug module by default into the images cause it doesn't seem right for a production envirnment.

also I've to say that I never managed to get xdebug working :-(