xdebug on MacBook Pro
I've successfully added several PHP extensions to my stock, Apple-supplied PHP install on my MacBook Pro. Tonight I wanted to add xdebug to help track down some Drupal OpenID problems. A bit of Google searching and I found a number of examples. Virtually all of them pointed at ActiveState's precompiled xdebug.so binaries, so I tried that.
Command-line (php -m) and (php -i) worked fine after getting my php.ini file correct. But my Apache module never saw the xdebug extension, and that's where I needed it most.
After much thrashing around, I found a blog where my Apache error message --
Failed loading /usr/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so: (null)
-- was mentioned. The author mentioned recompiling xdebug from source and then meeting with success.
I did the same, and it worked. Apparently on the MacBook Pro, mod-php won't work with the pre-compiled xdebug binary, even thought the command line php will.
Fortunately, compiling xdebug was easy and clean. I'm always hesitant to compile things which are full of gotchas, errors and want to drop files all over your filesystem.