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
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/remote
The text was updated successfully, but these errors were encountered:
derschatta
changed the title
Find a way to automatically detect current IP address for xdebug
Find a way to get xdebug working without setting IP address in .env
Nov 20, 2018
For Mac I found an easy way to achieve this and committed it in 616bb29.
On Docker for Mac there's a dns name which always points to the host.
On Linux there's no such thing but it's easy to find the internal IP of the host from the docker container, I've added instructions for the env.dist file for that as well.
I'll leave this issue open in case there are better solutions which work out of the box across platforms.
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: