Did anyone got xDebug working with WSL2? #1037
-
Hi, frankenphp itself worked out of the box for me using WSL2(ubuntu22.04) but I can't get xdebug working. I could find these two errors in the https://localhost/_profiler/xdebug
But I made sure that host.docker.internal:9003 is reachable from the container, so I don't understand the error. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
Most likely, your debugger isn't set to accept "external connections"; this is the setting in phpstorm:
I suspect vscode has a similar setting somewhere, but I am not familiar with it.
Also, for wsl2/docker, setting remote host to
xdebug://nameserver
orxdebug://gateway
(the former worked best for me in WSL2's mirrored networking mode).