IntelliJ Xdebug with WSL 2 Docker
How to run a PHP project in Docker on the WSL 2 backend and debug it remotely with Xdebug in IntelliJ — plus the five hurdles I had to clear along the way, from a dynamic host IP to Windows Firewall and path mappings.
5 min read