
Xdebug.ini for php:7.2-fpm-alpine3.8 zend_extension=xdebug. xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini # Windows (with WSL2): Run "grep nameserver /etc/nf | cut -d ' ' -f2"

Hope this will help and save your hours :-) I can't further explain it, it did worked for me and I have mentioned it here. RUN openssl req -x509 -new -out /etc/ssl/certs/ssl-cert-cms.crt -config /etc/ssl/certs/nf

For example, the phpstorm/php-71-apache-xdebug-28 image is now accessible as phpstorm/php-apache:7.1-xdebug2.8. RUN chown -R www-data:www-data /srv/app/cms Now, instead of individual version-specific images such as phpstorm/php-71-apache-xdebug-26, use feature-specific names such as phpstorm/php-cli or phpstorm/php-apache, and provide a version via :tag. RUN docker-php-ext-install mbstring pdo pdo_mysql docker/cms/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini docker/cms/vhosts/nf /etc/ssl/certs/nfĬOPY. docker/cms/vhosts/nf /etc/apache2/sites-available/nfĬOPY. docker/cms/vhosts/nf /etc/apache2/sites-available/cms.confĬOPY. Searched for several tutorials online, checked some threads here on StackOverflow (ex.: Docker and XDebug not reading breakpoints VSCode), but I'm still not able to get this working.ĬOPY. In the past I was able to easily debug my PHP apps with VSCode running WAMP Server, but since I started working with Docker I'm unable to get debug working.

I'm trying to debug a PHP app running on Docker with VSCode, but without success.
