Now I need to debug a CLI script and PhpStorm shows me following error: Cannot evaluate expression '$_SERVER' Once I'm in FPM context - I can debug things fine if I just have activated remote debugging in PhpStorm. My php 7.3 interpreter with Xdebug sits inside one of those containers. I'm running Docker Desktop for Windows in WSL2 mode. I'm running a Magento2 PHP app inside a set of docker containers that are orchestrated by docker-compose locally.