Programming
We provide developers and engineers the guides and tutorials they...
Search
We provide developers and engineers the guides and tutorials they...
Content is king. It's not just about how you're going to write, b...
Looking for an engaging connection with thousands of other people...
Checkout how to install xDebug with pecl on your MacOSX
pecl install xdebug
If encountered with error?
which pecl
its located at :/usr/local/bin/pecl
cd /usr/local/Cellar/php/7.2.6/
if you look in this directory, there's a pecl symlink, simply remove and try installing it again.
rm -rf pecl
Perform step 1 now.
It should now install fine without any errors.
Bu default, xDebug extension added to your php.ini file but we need to add complete path for xDebug to make it work.
locate your php.ini
php --ini
subl /usr/local/etc/php/7.2/php.ini
Add the extension in php.ini
zend_extension="/usr/local/Cellar/php/7.2.6/pecl/20170718/xdebug.so"
Restart your server, in my case, Its valet.
valet restart
It should restart without any warnings or errors. Cheers.