Skip to content
Lou van der Laarse edited this page Feb 2, 2020 · 4 revisions

Xdebug support is built-in. It works on port 9000 after you enable it.

The [--remote_autostart=] option can be used by typing: valet xdebug --remote_autostart=0 or changing both settings: valet xdebug on --remote_autostart=1

Enable Xdebug:

valet xdebug on [--remote_autostart=]

Disable Xdebug:

valet xdebug off [--remote_autostart=]

Enable/disable xdebug.remote_autostart:

valet xdebug --remote_autostart=[true/false]

⚠️ Xdebug makes your environment slower. That's why we allow to fully enable / disable it. When not debugging it's best to disable it by running valet xdebug off.

PhpStorm

To use Xdebug with PhpStorm you don't have to configure anything. Just run valet xdebug on and click the Xdebug button on the top right:

xdebug-phpstorm

Then install Xdebug helper for Chrome and enable it when viewing the page you want to use Xdebug on.

Clone this wiki locally