xdebug.so for Mac Snow Leopard and PHP 5.3

xdebug.so for Mac Snow Leopard and PHP 5.3

I compiled a 64 bit version of xdebug 2.0.5 2.1.0beta2-dev on my Mac (snow leopard) for Apache/2.2.11 and PHP 5.3. If anyone needs it, here’s the download: xdebug.so

…build commands used
$> phpize
$> ./configure –enable-xdebug CFLAGS=’-arch x86_64′
$> make

I’m using it with Eclipse 3.4 and it debugs fine but the hooks/overrides for the PHP 5.3 api don’t seem to be working. My error output and var_dumps, for example, aren’t the neatly formatted xdebug output and still the regular PHP output. I have an identical WAMP stack on my windows laptop with no issues. If anyone uses this, let me know how it worked out. I think I might have just overlooked a php.ini setting. Thanks to xdebug for helping out so quickly. Turned out that I had html_errors in my php.ini set to “Off”. It should be on. Everything works perfectly now! Well, almost …http://bugs.xdebug.org/view.php?id=469. At least using “Watch Expressions” is an ok workaround until this gets fixed. We’re all good with the 2.1 beta build.

…php.ini
[xdebug]
zend_extension=”/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so”
xdebug.remote_mode=”req”
xdebug.var_display_max_depth=10
xdebug.var_display_max_data=1000
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=”dbgp”