From 8ac5d33a21f087c326e5bac07bfff85f1985cce7 Mon Sep 17 00:00:00 2001 From: Behzad Date: Thu, 11 May 2023 16:34:48 +0930 Subject: [PATCH 1/2] Update xdebug.ini to work with php8 and xdebug 3.1 --- scaffold/optional/docker/xdebug.ini | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scaffold/optional/docker/xdebug.ini b/scaffold/optional/docker/xdebug.ini index a84cd65..7b007e1 100644 --- a/scaffold/optional/docker/xdebug.ini +++ b/scaffold/optional/docker/xdebug.ini @@ -1,8 +1,6 @@ zend_extension=xdebug.so xdebug.max_nesting_level=500 -xdebug.remote_enable=1 -xdebug.remote_handler=dbgp -xdebug.remote_mode=req -xdebug.remote_port=9000 -xdebug.remote_connect_back=1 -xdebug.idekey=PHPSTORM +xdebug.mode=debug,develop +xdebug.start_with_request=yes +xdebug.client_host=host.docker.internal +xdebug.client_discovery_header=HTTP_X_FORWARDED_FOR,REMOTE_ADDR From a5926e1b57a3422651b53ab1828e2e1e3bfcaf04 Mon Sep 17 00:00:00 2001 From: Behzad Date: Thu, 11 May 2023 16:40:44 +0930 Subject: [PATCH 2/2] adding the extra host to resolve host.docker.internal:9003 --- scaffold/optional/docker-compose.linux.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scaffold/optional/docker-compose.linux.yml b/scaffold/optional/docker-compose.linux.yml index a9b60cb..faea6d2 100644 --- a/scaffold/optional/docker-compose.linux.yml +++ b/scaffold/optional/docker-compose.linux.yml @@ -44,7 +44,8 @@ services: - ${XDG_RUNTIME_DIR}/keyring:/ssh networks: - default - + extra_hosts: + - host.docker.internal:host-gateway db: image: mariadb environment: