Xdebug + PhpStorm add-on doesn't work

Hello,

(NB: I’ve edited the description of the issue as I got feedback it wasn’t clear, hope this one is better).

I’d like to use PhpStorm’s zero configuration debugging as described here Zero-configuration debugging | PhpStorm Documentation I had it set up a while ago and I know it works.

However, when I listen to PHP debug connections and load the site, I get the following error/screen and I don’t know what to do here, why it breaks on that script:

Here are the details of the site I’ve pulled to my machine via localwp from wpengine, note it’s https:

Here is the server I’ve added in PhpStorm preferences and it validates via “Validate Debugger Configuration on Web Server”:

And there are my Xdebug preferences:

Does anyone know what’s going on and how to fix it?

This also happens when using Xdebug + PhpStorm add-on provided by localwp app. I’ve added run configuration via localwp app and here are the settings that I see (below). Note it doesn’t recognise it as https.

When I run Debug “Local” it still breaks on the same script:

Versions:

PhpStorm v2021.1
localwp v6.0.0 (but also didn’t work in the previous version)

Any idea what’s going on here and how to fix it, please? I’d really appreciate any help, thank you! :pray:

Thanks for posting all of this and making use of Local and Xdebug!

That script is what Local uses to help define the WP_ENVIRONMENT_TYPE variable. There’s more discussion about this in the following topic along with some adjustments that can be made to prevent this PHPStorm from breaking on this file:

If it interests you, you can also upvote this feature request to remove this file: