Xdebug for Zend Server CE w/PHP 5.3 on Snow Leopard
Download and unpack the official PEAR package:
Stewart:Code xdissent$ /usr/local/zend/bin/pecl download xdebug downloading xdebug-2.0.5.tgz ... Starting to download xdebug-2.0.5.tgz (289,234 bytes) .............................done: 289,234 bytes File /Users/xdissent/Code/xdebug-2.0.5.tgz downloaded Stewart:Code xdissent$ tar -jxvf xdebug-2.0.5.tgz x package2.xml x xdebug-2.0.5/debugclient/build/buildcheck.sh x xdebug-2.0.5/debugclient/build/buildconf1.mk [...] x xdebug-2.0.5/xdebug_xml.h x xdebug-2.0.5/xt.vim x package.xml
Install the extension:
Stewart:Code xdissent$ cd xdebug-2.0.5 Stewart:xdebug-2.0.5 xdissent$ /usr/local/zend/bin/phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 Stewart:xdebug-2.0.5 xdissent$ ./configure --with-php-config=/usr/local/zend/bin/php-config CFLAGS="-arch i386 -arch x86_64" checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E [...] configure: creating ./config.status config.status: creating config.h Stewart:xdebug-2.0.5 xdissent$ make /bin/sh /Users/xdissent/Code/xdebug-2.0.5/libtool --mode=compile cc -I. -I/Users/xdissent/Code/xdebug-2.0.5 -DPHP_ATOM_INC -I/Users/xdissent/Code/xdebug-2.0.5/include -I/Users/xdissent/Code/xdebug-2.0.5/main -I/Users/xdissent/Code/xdebug-2.0.5 -I/usr/local/zend/include/php -I/usr/local/zend/include/php/main -I/usr/local/zend/include/php/TSRM -I/usr/local/zend/include/php/Zend -I/usr/local/zend/include/php/ext -I/usr/local/zend/include/php/ext/date/lib -DHAVE_CONFIG_H -arch i386 -arch x86_64 -c /Users/xdissent/Code/xdebug-2.0.5/xdebug.c -o xdebug.lo mkdir .libs cc -I. -I/Users/xdissent/Code/xdebug-2.0.5 -DPHP_ATOM_INC -I/Users/xdissent/Code/xdebug-2.0.5/include -I/Users/xdissent/Code/xdebug-2.0.5/main -I/Users/xdissent/Code/xdebug-2.0.5 -I/usr/local/zend/include/php -I/usr/local/zend/include/php/main -I/usr/local/zend/include/php/TSRM -I/usr/local/zend/include/php/Zend -I/usr/local/zend/include/php/ext -I/usr/local/zend/include/php/ext/date/lib -DHAVE_CONFIG_H -arch i386 -arch x86_64 -c /Users/xdissent/Code/xdebug-2.0.5/xdebug.c -fno-common -DPIC -o .libs/xdebug.o [...] Build complete. Don't forget to run 'make test'. Stewart:xdebug-2.0.5 xdissent$ sudo make install Installing shared extensions: /usr/local/zend/lib/php_extensions/
Add the xdebug directive group to the PHP ini file:
Stewart:xdebug-2.0.5 xdissent$ sudo vim /usr/local/zend/etc/php.ini
[xdebug] zend_extension="/usr/local/zend/lib/php_extensions/xdebug.so" xdebug.remote_enable=1 xdebug.show_local_vars=On xdebug.var_display_max_data=10000 xdebug.var_display_max_depth=20 [zend] zend_extension=/usr/local/zend/lib/ZendExtensionManager.so zend.install_dir=/usr/local/zend ; The dir all configuration files are stored in. zend.conf_dir=/usr/local/zend/etc zend.ini_scandir=conf.d