Commit ddf80576 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction pour faire fonctionner xdebug en web et en cli

parent e80e9677
Loading
Loading
Loading
Loading
+6 −22
Changes for docker-compose.yml: 6 added lines, 22 removed lines.
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@ services:
    environment:
      APPLICATION_ENV: dev
      APPLICATION_HOSTNAME: ose-dev.pc-local
      XDEBUG_CONFIG: "remote_host=172.21.0.15"
      PHP_IDE_CONFIG: "serverName=ose-dev.pc-local"

    build:
      context: .
@@ -24,33 +26,15 @@ services:

    working_dir: /app

    extra_hosts:
      - "host.docker.internal:host-gateway"

    networks:
      devnet:
            ipv4_address: 172.21.0.10


  ose-test:
    container_name: ose-test

    environment:
      APPLICATION_HOSTNAME: ose-test.pc-local
      APPLICATION_ENV: test

    build:
      context: .
      dockerfile: Dockerfile
      args:
        PHP_VERSION: 8.0
        APPLICATION_ENV: test
        ipv4_address: 172.21.0.15

    volumes:
      - .:/app

    working_dir: /app

    networks:
      devnet:
        ipv4_address: 172.21.0.15

networks:
  devnet:
+5 −11
Changes for docker/dev/php.conf: 5 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -23,19 +23,13 @@ session.upload_progress.cleanup = On

opcache.enable 			        = 0

xdebug.default_enable           = 1
xdebug.mode                     = debug, develop
xdebug.start_with_request       = 1
xdebug.cli_color                = 1
xdebug.profiler_output_name     = "xdebug.out.%p"

xdebug.remote_connect_back 	    = 1
xdebug.client_host              = 172.21.0.10
xdebug.remote_autostart         = 1

xdebug.client_host=host.docker.internal
xdebug.start_with_request = yes
xdebug.discover_client_host     = 1
xdebug.show_local_vars = 1
xdebug.var_display_max_children = 512
xdebug.var_display_max_data 	= -1
xdebug.max_nesting_level 	    = 128

# Attention: trop diminuer 'max_nesting_level' peut causer une erreur 'Maximum function nesting level of x reached'
#xdebug.collect_params 		= 4
 No newline at end of file
xdebug.var_display_max_data 	= -1