Xdebug Could not connect to debugging client

This happens on Windows 10 too. It’s a PHP 8 issue. I was able to manually adjust the php.ini.hbs file as described by Afragen here and that did the trick: Update PHP 8 lighting service - please