PHP 8.0 Xdebug timeouts in Local

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) :frowning:

[17-Feb-2021 20:08:59 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP_X_FORWARDED_FOR HTTP header), localhost:9000 (fallback through xdebug.client_host/xdebug.client_port) :frowning:

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?

I can duplicate this on both sites that our organization owns.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?

Yes, and it also has this same issue.

Replication

Start a WordPress site, access any page, and watch the logs fill up :slight_smile:

System Details

  • Which version of Local is being used?
    5.9.8+5191

  • What Operating System (OS) and OS version is being used?
    Windows 10 Education, 1909

  • Attach the Local Log. See this Community Forum post for instructions on how to do so:
    Attached is the log from the fresh WordPress siteerror.log (10.4 KB) And also Local’s log. local-lightning.log (458.7 KB) .

2 Likes

Thank you much! I appreciate the cross-post.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.