Published on

Fully integrate DDEV and PhpStorm (incl. unit tests with coverage) — Update 2021

Authors

A practical recipe to wire PhpStorm to DDEV for end-to-end development: debugging, PHPUnit, and coverage.

Steps

  • Configure Docker-based interpreter and project path mappings
  • Enable ddev xdebug on; set PhpStorm to listen on port 9003
  • Configure PHPUnit to execute inside the container and generate coverage (Xdebug/PCOV)

With this, your IDE orchestrates code execution inside containers transparently.