afragen
February 20, 2021, 1:49am
1
Local now has the ability to update lighting-services within the app. Now we need to use it.
PHP 8 includes xDebug 3.x. The lighting-services/php-8.x/conf/php.ini.hbs
needs to be updated to include the following lines instead of what is currently shipped.
xdebug.mode=debug
xdebug.client_port=9003
xdebug.start_with_request=trigger
xdebug.discover_client_host=yes
This was reported in Install PHP 8
It would solve issues as seen in
Issue Summary
Greetings. I’m getting the following error fooding my logs when I upgrade my sites or add new ones in Local to PHP 8.0.0 (custom environment, nginx):
Xdebug: [Step Debug] Could not connect to debugging client. Tried: 127.0.0.1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port)
Is there a way to get rid of this notice while still having XDebug enabled?
Troubleshooting Questions
Does this happen for all sites…
Hi there,
I’m having similar issues, also on Win10.
Local 5.9.8+5191
Pageload with 7.4.1: 200ms
Pageload with 8.0.0: 2500ms
I get a couple of Xdebug errors in the debug.log (see below)
It’s talking about timeouts, could it be the delay we are experiencing are couple of consecutive timeouts and retries?
Hope this helps solve it.
Thanks,
Ruud
[01-Feb-2021 12:19:29 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR…
Issue Summary
When swapping from PHP 7.4.1 to PHP 8.0 in Local, performance slows significantly and the log is flooded with these:
[17-Feb-2021 20:00:00 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: 127.0.0.1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port)
[17-Feb-2021 20:08:59 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:…
It would also be a great thing to include xDebug 3 in all the other PHP versions, but it would require similar updates to the php.ini.hbs
files.
Thanks.
system
Closed
May 21, 2021, 1:49am
2
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.