Could not connect to debugging client + PHP8 Error

Issue Summary

Error log is filled with the same error saying that it Could not connect to debugging client. Also if I upgrade PHP to any version 8 the site just refuses to show anything other than a white screen.

Troubleshooting Questions

The debugging issue happens for all Local sites regardless of PHP version and the PHP8 issue happens with all Local sites.

Replication

Upgrade any of your Local sites to PHP8

System Details

I’m using Local 6.6.1+6281 on a Mac running OS Ventura 13.2

local-logs.zip (32.2 KB)

Security Reminder

Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @pixelborder

More details here as well as a potential workaround that should help:

If you’re still having trouble keep us posted!

I cannot debug with PHP 4.1 and up
Running on Windows 10, Localwp 6.7, VScode latest (version Mar, 2023).

The surpring issue was that only AFTER changing PHP from 7.4.1/3 down to 7.3.5 VScode started responsding and I can debug.

{
			"name": "Listen for Xdebug (Local)",
			"type": "php",
			"request": "launch",
			"port": 9000,
			"xdebugSettings": {
				"max_children": 128,
				"max_data": 1024,
				"max_depth": 3,
				"show_hidden": 1
			}
		},

I wish to start runningg PHP 8 and up.

Any idea how to resolve is welcome.

HI @mulli

Is this still an issue for you? Is there any change if you downgrade your Local version?

Hi Nick, sorry for the late response.
Currently, I bypass the issue by lowering PHP to 7.35.
Its good enough for debugging and it simply works.

Once accidentaly I was on PHP 7.4 or 8 (cant remember) and debug #3 did work!
Its on my plate to retest and verify.

Thanks for asking - I will update soon as I retest.
Mulli

2 Likes

Sounds good @mulli! Thank you for keeping us updated.

1 Like

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