

Tried: 172.18.0.4:9001 (from REMOTE_ADDR HTTP header), localhost:9001 (fallback through xdebug.client_host/xdebug.client_port) :-( ERR: Could not connect to debugging client. WARN: Creating socket for 'localhost:9001', connect: Address not available.

WARN: Creating socket for 'localhost:9001', poll success, but error: Operation in progress (29). WARN: Could not connect to client host discovered through HTTP headers, connecting to configured address/port: localhost:9001. WARN: Creating socket for '172.18.0.4:9001', poll success, but error: Operation in progress (29). INFO: Client host discovered through HTTP header, connecting to 172.18.0.4:9001. INFO: Checking header 'HTTP_X_FORWARDED_FOR'. Here are Xdebug logs inside docker container at /var/log/xdebug.log /var/www/html/app # tail -f /var/log/xdebug.log

In PhpStorm I am listening to port 9001 (I use 9000 for other service). I have one container with PHP where Xdebug is installed and configured like this: zend_extension=/usr/lib/php8/modules/xdebug.so I ported a local development setup from Linux to a new Mac machine and am having problems with getting Xdebug to work with PhpStorm in a Mac M1 Pro machine.
