From 2289f6e5be6b7dde0ac153272b73e201b20eea4a Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Fri, 24 Jul 2026 14:58:38 +0200 Subject: [PATCH] fix xdebug (taken from elixforms-web-services) --- .docker/php/Dockerfile | 2 +- .docker/php/xdebug.ini | 5 +++-- .vscode/launch.json | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.docker/php/Dockerfile b/.docker/php/Dockerfile index d28361a..8cf0dc6 100644 --- a/.docker/php/Dockerfile +++ b/.docker/php/Dockerfile @@ -3,6 +3,6 @@ FROM php:8.5.8-cli RUN pecl install xdebug && docker-php-ext-enable xdebug WORKDIR /app -EXPOSE 8000 9023 +EXPOSE 8000 CMD ["php", "-S", "0.0.0.0:8000"] diff --git a/.docker/php/xdebug.ini b/.docker/php/xdebug.ini index 0e48658..8b5954b 100644 --- a/.docker/php/xdebug.ini +++ b/.docker/php/xdebug.ini @@ -5,5 +5,6 @@ xdebug.mode=develop,debug xdebug.start_with_request=yes xdebug.client_host=host.docker.internal xdebug.client_port=9023 -xdebug.log_level=0 -xdebug.idekey=VSCODE \ No newline at end of file +xdebug.log=/tmp/xdebug.log +xdebug.log_level=7 +xdebug.idekey=VSCODE diff --git a/.vscode/launch.json b/.vscode/launch.json index 599fe49..caf7a68 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -54,6 +54,7 @@ "name": "WWW - Listen for Xdebug", "type": "php", "request": "launch", + "hostname": "0.0.0.0", "port": 9023, "pathMappings": { "/app": "${workspaceFolder}/php"