After (finally) upgrading my Mac to Snow Leopard (a little late – I know) the xdebug module stopped working.
I got “Failed loading /usr/local/zend/lib/php_extensions/xdebug.so: (null)” when launching php in Terminal (e.g. with running phpunit).
Reinstalling xdebug did not help and I eventually found the solution in the Zend forums.
Here are the steps I used to get the current xDebug version (2.1.1) installed:
sudo -s ftp http://pecl.php.net/get/xdebug-2.1.1.tgz tar zxvf xdebug-2.1.1.tgz cd xdebug-2.1.1 export CFLAGS="-arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" export CCFLAGS="-arch i386 -arch x86_64 -g -Os -pipe" export CXXFLAGS="-arch i386 -arch x86_64 -g -Os -pipe" export LDFLAGS="-arch i386 -arch x86_64 -bind_at_load" /usr/local/zend/bin/phpize ./configure --with-php-config=/usr/local/zend/bin/php-config make cp modules/xdebug.so /usr/local/zend/lib/php_extensions/xdebug.so
Advertisement