Xdebug connection issue after upgrade

Hello,

My issue is quite straightforward now that I've tested a lot of scenario trying to understand why for one project (open in an old version of PHPStorm) xdebug was working and not for the other (opened in the newest version).

It all comes down to a connection issue.

Context :

- PHPStorm running on windows

- Project files are on the WSL2 filesystem

- Project is running in a docker container

- xdebug fully configured (was working before the upgrade)

When I open the project in PHPStorm 2023.2.1 and click on "Start listening for PHP Debug Connection", if I connect into the container and run nc -vz <client_host_ip> 9005 I get an answer. The container is able to connect without issue to the host machine on port 9005.

If I open the exact same project/files, same files, same container, with PHPStorm 2024.2.4, click on "Start listening for PHP Debug Connection" and then run nc -vz <client_host_ip> 9005 , this time it just times out.

Any idea of what could have changed in the configuration that suddenly lead to the container not being able to reach the ip and port when the “listening tool” is running ? At first sight I don't see any changes in the configuration when opening with the old and new version of the IDE.

Thanks for you help,

Best regards,

Killian

 

0

Please sign in to leave a comment.