From the documentation on the official github page for VSCode PHP Debug extension, seems like all you need to do is to add xdebug.remote_connect_back = 1 to [Xdebug] section in php.ini. This will work for other clients too, not only VSCode with this extension. I think that vhosts are causing this problem and remote_connect_back tells the client what server address it should listen to
Posts made by P Mo
RE: [Tutorial] How to add Xdebug to Laragon
RE: Laragon and Let's Encrypt
was there any radical change in how certificates are automatically generated for virtual hosts? For me everything seems to work (Apache 2.4.29, PHP 7.1.11) but even after adding generated certificate to Chrome, I get error NET::ERR_CERT_COMMON_NAME_INVALID
This server could not prove that it is newblog.dev; its security certificate is from [missing_subjectAltName]. This may be caused by a misconfiguration or an attacker intercepting your connection.