Setting up xdebug for PHP 7 in Acquia DevDesktop
The Acquia DevDesktop help page says:
The PHP 7 version currently included with Acquia Dev Desktop does not currently include Xdebug. You can download an updated version of Xdebug here .
Here are the actual steps I used. YMMV.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
cd /Applications/DevDesktop/php7_0/ext wget http://xdebug.org/files/xdebug-2.5.5.tgz tar xvf xdebug-2.5.5.tgz rm xdebug-2.5.5.tgz cd xdebug-2.5.5 /Applications/DevDesktop/php7_0/bin/phpize ./configure --enable-xdebug CC="gcc -arch i386" CXX="g++ -arch i386" -with-php-config=/Applications/DevDesktop/php7_0/bin/php-config make mv modules/xdebug.so ../ cd .. rm -rf package.xml xdebug-2.5.5 # Edit /Applications/DevDesktop/php7_0/bin/php.ini # Add these lines: zend_extension="/Applications/DevDesktop/php7_0/ext/xdebug.so" xdebug.remote_enable=1 xdebug.remote_log=/tmp/xdebug.log # Restart DevDesktop services |
3 Comments
Ian Moffitt
These steps worked exactly for me. Thank you!
AkiShankar
Followed the same steps but it did not work for me. Neither does the xdebug appear in php -m list.
I am using MAC Sierra and Acquia Dev Desktop.
Are you able to advise. Thanks
Brian Gallagher
If you get the error:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
on Mac, run homebrew install autoconf to resolve.