Hi All, Did anyone resolve a problem with xdebug o...
# docker
r
Hi All, Did anyone resolve a problem with xdebug on WSL2 as follows?
Could not connect to debugging client. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port)
Thanks!
c
@red-whale-92071 There is a pending PR fixing this, in the meanwhile go to
docker/bin/platform.sh:5
and add
-i
after the
-v
of
grep
- but normaly it should work if there is the
host.docker.internal
route already.
@red-whale-92071 someone wrote in a blog-post that you still need to restart your container after a restart of the wsl2 instance because Windows always changes IPs when wsl2 starts.
r
@colossal-art-70405, thank you, will try the solution. I workaround it by adding
host.docker.internal
to
hosts
files (both, win and linux) with IP fetched like so:
wsl -- ip -4 route show default