setup-php/src/scripts/ext/xdebug_darwin.sh
2019-12-26 20:21:39 +05:30

6 lines
238 B
Bash

cd ~ && git clone --depth=1 https://github.com/xdebug/xdebug.git
cd xdebug || echo "Failed to clone Xdebug"
sudo phpize
sudo ./configure
sudo make
sudo cp modules/xdebug.so "$(php -i | grep "extension_dir => /opt" | sed -e "s|.*=> s*||")"