Kaynağa Gözat

setup xdebug for ap2i

Olivier Massot 3 yıl önce
ebeveyn
işleme
1d4768a1af
2 değiştirilmiş dosya ile 6 ekleme ve 7 silme
  1. 1 0
      docker/ap2i/Dockerfile
  2. 5 7
      docker/ap2i/conf/xdebug.ini

+ 1 - 0
docker/ap2i/Dockerfile

@@ -74,6 +74,7 @@ COPY /.ssh /root/.ssh
 COPY /docker/ap2i/conf/memory.ini /usr/local/etc/php/conf.d
 COPY /docker/ap2i/conf/apc.ini /usr/local/etc/php/conf.d
 COPY /docker/ap2i/conf/execution_time.ini /usr/local/etc/php/conf.d
+COPY /docker/ap2i/conf/xdebug.ini /usr/local/etc/php/conf.d
 ######## FACL and Start ########
 
 WORKDIR /var/www/html

+ 5 - 7
docker/ap2i/conf/xdebug.ini

@@ -1,17 +1,15 @@
 [xdebug]
 zend_extension=xdebug.so
-xdebug.default_enable = 1
-xdebug.remote_enable = 1
+xdebug.mode = debug
 xdebug.idekey=PHPSTORM
-xdebug.remote_autostart = 1
-xdebug.remote_connect_back = 1
-xdebug.remote_port = 9000
+xdebug.discover_client_host = 1
 xdebug.max_nesting_level=400
-xdebug.mode=coverage
+xdebug.start_with_request=yes
+xdebug.client_port = 9003
 
 ; Uncomment this line if docker is running on Mac or Windows
 ; xdebug.remote_host = host.docker.internal
 
 ; OR uncomment this one if docker is on Unix, then replace the hostname
 ;    by the your current machine's name (type 'hostname' in a terminal)
-xdebug.remote_host = dev
+xdebug.client_host = dev