PhpStorm has a lot of great settings simplifying the developer’s work. But some very convenient settings are turned off by default. On the other hand, some rarely used ones are turned on by default. If you change some default settings, it could make your work in PHP faster.
Use a Dockerfile to add XDebug to the official Docker WordPress image. Do not want to build? Use a pre-made image from a repository on Docker Hub. Also, see how to configure PhpStorm for debugging. And finally, learn how to separate production and development environments using multiple docker-compose files.