Since I have been struggling with this for forever and finally found an answer, here’s an attempt to spread the wealth knowledge around.
Blog: Compiling & installing Xdebug for PHP 5.2.5 (Entropy.ch build) on OS X 10.5
Just to give the web crawlers some more info, the error message was:
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so’ – (null) in Unknown on line 0
The solution is to compile it manually as a 64-bit application like so:
CFLAGS=’-arch x86_64′ ./configure –enable-xdebug
Hope this helps someone out there.
Related posts:

Pingback: zerodeviation.net » DTrace with Entropy PHP on OSX Leopard
Can’t seem to run phpize and I’m not sure what this error is telling me todo. I’ve tried running it from /usr/bin and a half dozen other places. Not sure what or where the module dir is.
Cannot find config.m4. Make sure that you run ‘/usr/bin/phpize’ in the top level source directory of the module
J, You should be able to run phpize inside the xdebug source directory, where you would also run ./configure and stuff from. It needs to be the phpize from the same PHP that you want to run xdebug under.