

(If you need to change the xdebug port due to a port conflict on your host computer, you can do it with a PHP override, explained below.)įor more background on XDebug see XDebug documentation. The debug server port on the IDE must be set to port 9000, which is the default and is probably already set in most IDEs.ddev xdebug status will show current status.Disable xdebug for better performance when not debugging with ddev xdebug off.It will remain enabled until you start or restart the project. Enable xdebug by running ddev xdebug or ddev xdebug on in your project directory.IDEs other than those listed here work fine, if they listen on the default xdebug port 9000.

#Phpstorm xdebug not working install
Xdebug is a server-side tool: It is installed automatically on the container and you do not need to install or configure it on your workstation.Īll IDEs basically work the same: They listen on a port and react when they're contacted there. It is disabled by default for performance reasons, so you'll need to enable it in your config.yaml. PHP Step Debugging Step-debugging with ddev and xdebug ¶Įvery ddev project is automatically configured with xdebug so that popular IDEs can do step-debugging of PHP code. Sharing a project with `ddev share` or by exposing a port Using Xdebug on a Port Other than the Default
#Phpstorm xdebug not working code
Visual Studio Code (vscode) Debugging Setup PhpStorm "Run/Debug configuration" Debugging
