gilbertoalbino / php74-fpm-docker

Ambiente Docker teste com PHP 7.4-fpm, Xdebug, Nginx e MySQL 8
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

modify php-fpm/Dockerfile #4

Open StephanKrauss opened 4 years ago

StephanKrauss commented 4 years ago

Hello,

i have modify the Dockerfile.


RUN yes | pecl install xdebug \ && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.collect_return=1" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.collect_includes=1" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.show_mem_delta=1" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.collect_params=4" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.trace_format=1" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_autostart=1" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_host='localhost'" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/xdebug.ini \ && echo "xdebug.remote_handler='dbgp'" >> /usr/local/etc/php/conf.d/xdebug.ini

RUN docker-php-ext-enable xdebug

I work with PhpStorm. When i set a breakpoint in PhpStorm the output don't stop on the breakpoint. This is my problem.

Have you an idea ?

Your sincerly

Stephan