You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
Actually it's a very few changes to do this but I spent a lot of time to make this work, especially the XDEBUG_CLIENT_HOST took me long to find out.
I think there should be a way to do this more easily, maybe add XDEBUG_CLIENT_HOST: host.docker.internal by default? I just made sure it works also on Linux.
Or at least there should be some documentation about it how to make this work.
Please describe the feature you would like to see implemented.
I just tried to setup debugging with IntelliJ IDEA on a MacBook. For this I set the following in
.psh.yaml.override:Now we have a container which comes preconfigured with Xdebug. This is already enough on my Linux machine to make it work.
For macOS it was also required to set an additional environment variable for the app_server container:
https://github.com/shopware/development/blob/53a182fc5f82f7b892dce1c22c7289a2ce66acd9/docker-compose.yml#L6-L18
extra_hosts: - "docker.vm:127.0.0.1" + environment: + XDEBUG_CLIENT_HOST: host.docker.internal volumes: - ~/.composer:/.composerActually it's a very few changes to do this but I spent a lot of time to make this work, especially the
XDEBUG_CLIENT_HOSTtook me long to find out.I think there should be a way to do this more easily, maybe add
XDEBUG_CLIENT_HOST: host.docker.internalby default? I just made sure it works also on Linux.Or at least there should be some documentation about it how to make this work.