原理了解
安装
RUN set -ex; \
wget http://xdebug.org/files/xdebug-2.8.0.tgz; \
tar -xzvf xdebug-2.8.0.tgz; \
cd ./xdebug-2.8.0; \
phpize; \
./configure --enable-xdebug; \
make && make install
COPY xdebug.ini /usr/local/etc/php/conf.d/make-php-ext-xdebug.ini
RUN pecl install xdebug && docker-php-ext-enable xdebug
COPY xdebug.ini /usr/local/etc/php/conf.d/make-php-ext-xdebug.ini
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so
; xdebug.remote_enable=1 ;开启访问ide
; xdebug.remote_autostart=off ;是否开启自动调试
; xdebug.re