Open loscar20 opened 1 year ago
Do you have any errors/warnings in xdebug logs in 3.2.x version when it's not working?
These errors are repeated in the log file
[102] Log opened at 2023-10-04 08:43:11.201497 [102] [Step Debug] INFO: Checking for client discovery headers: ''. [102] [Step Debug] INFO: Checking header ''. [102] [Step Debug] WARN: Could not discover client host through HTTP headers, connecting to configured a> [102] [Step Debug] WARN: Creating socket for 'host.docker.internal:9003', getaddrinfo: Resource temporar> [102] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:9003 (fallbac> [102] [Step Debug] INFO: Checking for client discovery headers: ''. [102] [Step Debug] INFO: Checking header ''. [102] [Step Debug] WARN: Could not discover client host through HTTP headers, connecting to configured a> [102] [Step Debug] WARN: Creating socket for 'host.docker.internal:9003', getaddrinfo: Resource temporar> [102] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:9003 (fallbac> [102] Log closed at 2023-10-04 08:43:11.353454
You're on Linux but have the following line
PHP_XDEBUG_CLIENT_HOST: host.docker.internal # Docker 18.03+ Mac/Win
you should comment it and uncomment:
# PHP_XDEBUG_CLIENT_HOST: 172.17.0.1 # Linux
Hello,
After some time of investigation, I found that I changed the ip ranges of the docker in the daemon.json file of the same so neither the solution of # PHP_XDEBUG_CLIENT_HOST: 172.17.0.1 # Linux
nor the one of PHP_XDEBUG_CLIENT_HOST: host.docker.internal # Docker 18.03+ Mac/Win
I have already put there the ip I configured in the daemon.json and I am already managing to debug.
Thank you very much for the help.
Codebase Mounted codebase
Describe your issue Since xdebug 3.2.x version I cannot debug, I had to go back to version 5.6.11 which has xdebug 3.1.x version.
Output of
docker info
Contents of your
docker-compose.yml
Contents of your
.env