pecl install xdebug
If encountered with error?
its located at :
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.
xDebug extension added to your
php.ini file but we need to add complete path for
xDebug to make it work.
Add the extension in
Restart your server, in my case, Its valet.
It should restart without any warnings or errors. Cheers.