-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find a way to get xdebug working without setting IP address in .env #8
Comments
For Mac I found an easy way to achieve this and committed it in 616bb29. I'll leave this issue open in case there are better solutions which work out of the box across platforms. |
May or may not be useful, you can now use the "host-gateway" key to auto-assign a custom domain to the host IP.
Could be used to eliminate the .env IP address |
nice find. have you tested this? I am on Mac so cannot really test it. Might just be enough to set this on the php compose part:
and make sure the HOST_IP setting in the .env is
|
I'll give it a go when I get some time - I use xdebug myself in my direct non-docker PHP. I ran into this setting in another docker thing and thought it might be useful. |
Is your feature request related to a problem? Please describe.
Currently you need to set the IP address of the host manually in the .env file to get xdebug working properly. If you are always on the same network with the same IP address this is no problem but as soon as you switch you might need to change it manually which is annoying.
Describe the solution you'd like
Ideally you don't need to set the IP address but the system automatically detects it and xdebug works out of the box.
Additional context
One possible way could be to use
xdebug.remote_connect_back
as described here: https://xdebug.org/docs/remoteThe text was updated successfully, but these errors were encountered: