Could not connect to debugging client

Issue Summary

In debug log, it is spamming this error message:

[05-Jun-2021 16:01:57 UTC] 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) :-(

[05-Jun-2021 16:01:58 UTC] 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) :-(

[05-Jun-2021 16:01:58 UTC] 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) :-(

Troubleshooting Questions

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

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

Replication

System Details

  • Which version of Local is being used?
    5.10.5+5403

  • What Operating System (OS) and OS version is being used?
    MacOS Big Sur 10.4

Also, Auto XDbug configuration for PhpStorm not working. Because I am not openin public folder with PhpStorm for some limitations. I have to working on theme folder.

local-lightning.log (220.9 KB)

Are you using PHP 8? It’s standard port is 9003.

Yes i am using php 8 and 9003 port. Just tested 9000.

The error log indicates that your IDE is listening on port 9000 and that there is not response from xDebug.


IDE and xdebug ports are same.

Same issue here

It think it happens when you don’t open phpstorm in public folder. So Local can not add config for xdebug. I am working on theme’s folder instead of public folder.

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