DDEV Xdebug Quickstart with PhpStorm (Video)
Step debugging is one of the first things every developer should master in any language or environment, and it’s my opinion that it’s just as fundamental as version control. With DDEV, getting Xdebug working with PhpStorm takes less than five minutes and no php.ini fiddling. This screencast shows the whole thing on a TYPO3 project, start to finish.
Watch the Video
What You’ll See
- Installing the DDEV Integration Plugin for PhpStorm
- Setting a breakpoint at the entry point of a TYPO3 project
- Telling PhpStorm to listen for PHP debug connections
- Enabling Xdebug with
ddev xdebug on - Stepping over (F8) and stepping into (F7) code as a page loads
The Steps
- Install the DDEV Integration plugin from the PhpStorm marketplace (not required, but it handles most of the setup for you)
- Set a breakpoint
- Tell PhpStorm to listen for PHP debug connections
ddev xdebug on- Visit the page — PhpStorm stops at your breakpoint automatically
That’s it. No manual php.ini changes, no fussing with host.docker.internal, no separate Xdebug install.
Works the Same Everywhere
This screencast uses PhpStorm, but the same setup works identically with VS Code, on Linux, and on Windows with WSL2. If you’re setting up a new machine, see:
- DDEV on Linux in 10 Minutes
- Watch: DDEV from scratch with Windows WSL2
- Watch: DDEV From Scratch with macOS
More on Xdebug and DDEV
- The
ddev utility xdebug-diagnose --interactivecommand can help with port conflict and related setup problems. Try it out! - Xdebug in DDEV: Understanding, Debugging, and Troubleshooting Step Debugging — the updated guide
- DDEV and Xdebug: Debugging and sorting out problems
- Xdebug.org and its step debugging documentation
Xdebug is created and maintained by Derick Rethans. He’s been maintaining it for 20+ years. Send money to the Xdebug project!. The DDEV Foundation supports it as an upstream project, you can too.
Learn More
- Full details on DDEV’s Xdebug integration, including troubleshooting, are in the DDEV documentation.
If you have questions, reach out in any of the support channels.
Follow our blog, Bluesky, LinkedIn, Mastodon, and join us on Discord. Sign up for the monthly newsletter.
This article was edited and refined with assistance from Claude Code.