Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

deshiloh's avatar

xdebug with valet

I'm using laravel valet and I installed xdebug with pecl (seems to be the only way) on mac osx.

I tried to follow every tips i could find here and on the internet, but xdebug still doesn't.

I have no any error messages, nothing.

Here's my php.ini config :

[xdebug]
zend_extension="/usr/local/Cellar/php/7.4.2/pecl/20190902/xdebug.so"
xdebug.remote_autostart=1
xdebug.default_enable=1
xdebug.remote_port=9001
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1
xdebug.remote_enable=1
xdebug.idekey=PHPSTORM

I set in phpstorm's config the 9001 port, delete any server waiting for phpstorm trigger it but nothing (i checked the "Can accept external connections").

Any suggestions ?

0 likes
7 replies
deshiloh's avatar

@ahmeddabak and the command brew install php71-xdebug seems not anymore available, i tried brew install php74-xdebug same thing.

ahmeddabak's avatar

pecl install xdebug . You won’t be able to install xdebug using homebrew

Source

deshiloh's avatar
deshiloh
OP
Best Answer
Level 1

just reboot my laptop and it works now ! So i did the right things, just reboot valet seems to be not enough

1 like

Please or to participate in this conversation.