-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Platform
Windows
Operating system version
Windows 10 22H2
System architecture
Intel (x86)
Herd Version
1.6.1
PHP Version
No response
Bug description
When xdebug is enabled with trigger based debugging it will try to change the port for the fastcgi daemon by adding 100 to the base port. (There is a config option for this but doesn't do anything from what I could find)
The windows php-cgi processes are already running on the base port + version number so adding 100 just gives a 502 Bad Gateway error as there is no fastcgi available on the port trying to be accessed.
To fix:
Edit the debug.conf file in the ~.config\herd\config\pro\nginx folder and either negate the map for detecting the xdebug cookies or change the debug ports to match the base ports.
Steps to reproduce
Turn on xdebug but do not enable for all requests, use a browser plugin to trigger the debug session as needed.
Relevant log output
nginx-error.log:
2024/05/14 16:49:08 [error] 13592#19976: *1 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 127.0.0.1, server: xxxx.test, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9183", host: "xxxx.test"