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 has been 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.
The text was updated successfully, but these errors were encountered:
Very interesting. You're right that host.docker.internal can't be resolved inside the container but still debugging works inside my IntelliJ.
I created a public/info.php and have set a debug breakpoint on the phpinfo(); line which works. The Info page tells me xdebug.client_host is set to host.docker.internal.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
development/docker-compose.yml
Lines 6 to 18 in 53a182f
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.
The text was updated successfully, but these errors were encountered: