Xdebug not working

I am working in a Mac with PhpStorm, Laravel and Xdebug, everything goes well, both, in the php.ini file and in the PhpStorm settings the step debugging port is set to 9003. When the server is up for debugging I can see these ports up:

phpstorm 1278 manuelcontreras 464u IPv6 0x3c62b903e95af995 0t0 TCP 127.0.0.1:9003->127.0.0.1:52911 (ESTABLISHED)
php 27636 manuelcontreras 6u IPv4 0x3c62b8f5848f48f5 0t0 TCP 127.0.0.1:52911->127.0.0.1:9003 (ESTABLISHED)

But the debugger does not stop in the breakpoints and using xdebug_info() I see these errors:

[Step Debug] Creating socket for ‘localhost:9003’, poll success, but error: Operation now in progress (19).
[Step Debug] Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port).

I have tried with multiple configurations using xdebug directives but none has worked for me, I really would appreciate any help or hint, thanks.

1 Like