虫言虫语 虫言虫语

Docker配置调试环境(PHPSTORM+Xdebug)

in Dockerread (379458) 文章转载请注明来源!
RUN pecl install xdebug-2.5.5 \
&& docker-php-ext-enable xdebug 
RUN echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_host=10.0.75.1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_port=9100" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_handler=dbgp" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.idekey=PHPSTORM" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_log=/mnt/web/1.log" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini 

端口设置9100
连不上可以去看日志,日志路径可以自己改,IP,是本机docker分配的

jrotty WeChat Pay

微信打赏

jrotty Alipay

支付宝打赏

文章二维码

扫描二维码,在手机上阅读!

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2621440 bytes) in /data/htdocs/worm.host.smartgslb.com/build/var/Widget/Comments/Archive.php on line 311