ddev: Support: XDEBUG not working in WSL2 environment (docker-ce inside WSL2) with phpstorm on windows
Is there an existing issue for this?
- I have searched the existing issues
Run a Diagnostic and Paste Link Here
DDEV version: ITEM VALUE
DDEV version v1.21.1
architecture amd64
db drud/ddev-dbserver-mariadb-10.4:v1.20.0
dba phpmyadmin:5
ddev-ssh-agent drud/ddev-ssh-agent:v1.20.0
docker 20.10.18
docker-compose v2.9.0
mutagen 0.15.1
os linux
router drud/ddev-router:v1.20.0
web drud/ddev-webserver:20220808_yarn_crash
PROXY settings: HTTP_PROXY='' HTTPS_PROXY='' http_proxy='' NO_PROXY=''
======= DDEV global info =========
Global configuration:
instrumentation-opt-in=false
omit-containers=[]
mutagen-enabled=false
nfs-mount-enabled=false
router-bind-all-interfaces=false
internet-detection-timeout-ms=3000
disable-http2=false
use-letsencrypt=false
letsencrypt-email=
table-style=default
simple-formatting=false
auto-restart-containers=false
use-hardened-images=false
fail-on-hook-fail=false
required-docker-compose-version=
use-docker-compose-from-path=false
no-bind-mounts=false
======= DOCKER info =========
docker location: -rwxr-xr-x 1 root root 50718336 Sep 9 01:09 /usr/bin/docker
docker version:
Client: Docker Engine - Community
Version: 20.10.18
API version: 1.41
Go version: go1.18.6
Git commit: b40c2f6
Built: Thu Sep 8 23:11:45 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.18
API version: 1.41 (minimum version 1.12)
Go version: go1.18.6
Git commit: e42327a
Built: Thu Sep 8 23:09:37 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.8
GitCommit: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
DOCKER_DEFAULT_PLATFORM=notset
Expected Behavior
xdebug works out of the box If I start my ddev project and activate xdebug.
Actual Behavior
i get a error
ddev logs show : WARNING: [pool www] child 2706 said into stderr: “NOTICE: PHP message: Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) 😦”
in the container:
PING host.docker.internal (172.17.0.1) 56(84) bytes of data.
Trying 172.17.0.1… telnet: Unable to connect to remote host: Connection refused
/etc/hosts
172.17.0.1 host.docker.internal
Steps To Reproduce
docker running in WSL phpstorm on windows ddev xdebug on enable lisener in phpstorm
Anything else?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 24 (14 by maintainers)
Commits related to this issue
- Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772 — committed to rfay/ddev by rfay 2 years ago
- Revert "Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772" This reverts commit 674c52d3af52a9a6aed48155ca7576c32a4e3a49. — committed to rfay/ddev by rfay 2 years ago
- Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772 — committed to rfay/ddev by rfay 2 years ago
- Revert "Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772" This reverts commit 674c52d3af52a9a6aed48155ca7576c32a4e3a49. — committed to rfay/ddev by rfay 2 years ago
- Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772 — committed to rfay/ddev by rfay 2 years ago
- Revert "Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772" This reverts commit 674c52d3af52a9a6aed48155ca7576c32a4e3a49. — committed to rfay/ddev by rfay 2 years ago
- Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772 — committed to rfay/ddev by rfay 2 years ago
- Revert "Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772" This reverts commit 674c52d3af52a9a6aed48155ca7576c32a4e3a49. — committed to rfay/ddev by rfay 2 years ago
- Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772 — committed to rfay/ddev by rfay 2 years ago
- Revert "Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #3772" This reverts commit 674c52d3af52a9a6aed48155ca7576c32a4e3a49. — committed to rfay/ddev by rfay 2 years ago
- Make host.docker.internal work with all WSL2 permutations and gitpod, fixes #4242, fixes #3772, fixes #3813 (#4252) * Make host.docker.internal work with docker-installed-inside, fixes #4242, fixes #... — committed to ddev/ddev by rfay 2 years ago
I’m glad you got it solved. Firewall is the first thing on the troubleshooting list 😃 Some companies just make it too hard, don’t they.