setup-php/src/scripts/ext/xdebug_darwin.sh

6 lines
238 B
Bash
Raw Normal View History

2019-10-27 07:12:49 +07:00
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*||")"