Open Terminal
curl -s https://php-osx.liip.ch/install.sh | bash -s force 7.3.3
sudo su
cd /usr/local/php5-7.3.3…/bin ( use tab tab for right directory )
./pecl channel-update pecl.php.net
./pecl install xdebug
add xdebug.so to your php.ini in the lib directory