-
Notifications
You must be signed in to change notification settings - Fork 211
Xdebug
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 runningvalet xdebug off
.
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:
Then install Xdebug helper for Chrome and enable it when viewing the page you want to use Xdebug on.