xdebug.connect_back should ignore remote_host, but doesn't
Hey :),
I am trying to create a xdebug-connection to my webserver, but the "Validate Debugger Configuration on Web Server" says, that:
"Remote host is configured as localhost despite server host is probably not local"
But I've activated the "connect_back" option, as I access the server from various IPs. Sometimes someone else than me is working on this project, but never in the same time.
How can I proceed from here? AFAIK xdebug.connect_back=1 should make the xdebug.remote_host obsolete?
Best Regards,
Torsten
Please sign in to leave a comment.
Hi there,
That's just PhpStorm's validation helper (informational purposes only) -- AFAIK it does not look at connect_back at all.
From what I understand it just looks at domain name used to access the server ... and if it's a custom one (e.g. available via local DNS or hosts file) and remote_host points to localhost/127.0.0.1 it just shows that "warning". Obviously, it's a place where devs can make some improvement as it does not cover more complex setups (does rather basic checks .. which is what most people need .. as if you have xdebug configured you would not even have a need to use that tool).
You can have fully working debug without looking at that info.
Xdebug itself is what matters .. and it takes connect_back=1 over remote_host.