PhpStorm: unable to recieve Xdebug connections

I ran some updates on the stable channel of phpstorm by clicking on the blue dot that was above the gear icon in the top right of phpstorm.  It updated 2 plugins which I think were Developer Containers and Ai Assistant.

Not sure thats the cause of the issue as everything appeared to be working fine except when I went to use my debugger, it wouldn't stop.

When I try to validate the debugger I'm getting errors.
* Debug Client host: unreachable 
* Port 9003 is busy
* PhpStorm: unable to receive Xdebug Connections.

I've tried updating xdebug to the latest version and enabling the logs.

In the logs is

$ cat ./xdebug.log 
[14006] Log opened at 2024-04-26 01:51:38.527278
[14006] [Step Debug] INFO: Connecting to configured address/port: 192.168.10.104:9003.
[14006] [Step Debug] WARN: Creating socket for '192.168.10.104:9003', poll success, but error: Operation now in progress (29).
[14006] [Step Debug] ERR: Could not connect to debugging client. Tried: 192.168.10.104:9003 (through xdebug.client_host/xdebug.client_port) :-(
[14006] Log closed at 2024-04-26 01:51:38.566510

[14006] Log opened at 2024-04-26 01:51:40.324036
[14006] [Step Debug] INFO: Connecting to configured address/port: 192.168.10.104:9003.
[14006] [Step Debug] WARN: Creating socket for '192.168.10.104:9003', poll success, but error: Operation now in progress (29).
[14006] [Step Debug] ERR: Could not connect to debugging client. Tried: 192.168.10.104:9003 (through xdebug.client_host/xdebug.client_port) :-(
[14006] Log closed at 2024-04-26 01:51:40.409867

[14006] Log opened at 2024-04-26 01:51:42.853434
[14006] [Step Debug] INFO: Connecting to configured address/port: 192.168.10.104:9003.
[14006] [Step Debug] WARN: Creating socket for '192.168.10.104:9003', poll success, but error: Operation now in progress (29).
[14006] [Step Debug] ERR: Could not connect to debugging client. Tried: 192.168.10.104:9003 (through xdebug.client_host/xdebug.client_port) :-(
[14006] Log closed at 2024-04-26 01:51:42.969977

[14006] Log opened at 2024-04-26 01:51:47.764689
[14006] [Step Debug] INFO: Connecting to configured address/port: 192.168.10.104:9003.
[14006] [Step Debug] WARN: Creating socket for '192.168.10.104:9003', poll success, but error: Operation now in progress (29).
[14006] [Step Debug] ERR: Could not connect to debugging client. Tried: 192.168.10.104:9003 (through xdebug.client_host/xdebug.client_port) :-(
[14006] Log closed at 2024-04-26 01:51:47.787783

I've validated that the ipaddress is correct for the local system

% ifconfig |grep 192
    inet 192.168.10.104 netmask 0xffffff00 broadcast 192.168.10.255

How can I get debugging working again?  Thanks.

0
5 comments

[closed]  Not sure what fixed it, but restarting mac a few times and removing all usb accessories its now come right.  I can debug again.

0

Hi michael ussher,

Glad to hear that the issue was sorted out! Thank you for letting us know.
If you need any assistance, please submit a request at Help | Contact Support.

0

It has worked wonderfully for years, but for the past 2 days I have had the same problem on Windows.
I tried restarting my system, updating my environment, but the problem persists (sometimes I have the port 9003 warning)

2

Hello Francois Chaussin
I would like to ask you to submit a separate request via Help | Contact Support and attach Xdebug logs as well as logs from Help | Collect Logs and Diagnostic Data.

0

Francois Chaussin  same here. Xdebug worked for last year without problem, but last week im not able to create connection between phpstorm and xdebug. In my xdebug.log_file i have these informations:

 

[9] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:9003.
[9] [Step Debug] WARN: Creating socket for 'host.docker.internal:9003', poll success, but error: Operation now in progress (29).
[9] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port).
[9] Log closed at 2024-07-05 10:47:12.376112
 

nothing helps with that.

0

Please sign in to leave a comment.