In my case the problem was that Xdebug tried to run on every request and since I didn't do debugging on every page refresh errors like Xdebug: [Step Debug] Could not connect to debugging client
were reported and are understandable.
The most obvious solution with xdebug.log_level = 0
of course worked, but this was too broad and too blind way to fight this for me. So I checked the documentation, and the best way to get rid of that error in my opinion is to tell Xdebug when it should really run and when not, so the right option in my case is:
xdebug.start_with_request = trigger
as the documentation says:
The functionality only gets activated when a specific trigger is
present when the request starts.
The name of the trigger is XDEBUG_TRIGGER, and Xdebug checks for its
presence in either $_ENV (environment variable), $_GET or $_POST
variable, or $_COOKIE (HTTP cookie name).
and I recommend checking at least that part of their docs because there's more info and you can even do more fine tuning if needed.
phpinfo()
or justxdebug_info()
. – Celtucephpinfo()
/php -i
output I may compare with mine... as I do not see such warnings here when I do the same (I'm on Windows ... but I doubt it will make any difference here). Right now I believe it could be one of thexdebug.XXX
options .. or perhaps howerror_log
is handled (because that's where such message gets normally written). – Celtucexdebug.remote_autostart = yes
is Xdebug v2 option while Xdebug v3 usesxdebug.start_with_request = yes
instead xdebug.org/docs/upgrade_guide. I've checked all options I could think of .. and could not locate the one that would force such entry to be printed in the normal output (except some sort of PHP's error log redirection .. as that's where such message normally goes). No better ideas from me (except perhaps checking Xdebug's Bug tracker for possible tickets) and thereforexdebug.log_level = 0
sounds like a good solution here. – Celtuceerror_log
setting properly. – Celtuce