How to get XDebug working on Mac command line PHP

Posted by Eugene M on Stack Overflow See other posts from Stack Overflow or by Eugene M
Published on 2010-12-30T03:46:57Z Indexed on 2010/12/30 3:54 UTC
Read the original article Hit count: 418

Filed under:
|
|
|

I recently installed Zend Server Community Edition on a Mac with Snow Leopard. I can't get XDebug to work ... it shows up in the output for phpinfo from a web browser, but when I var_dump() a variable, there is no special output, and when I run phpunit, code coverage reports aren't generated.

Also when I type php -m at the command line, there is nothing for XDebug. I suspect that it's because the Mac is running the executable of PHP that was bundled with it instead of the executable of PHP that came with the Zend Server install. When I type /usr/local/zend/bin/php -m, XDebug does show up.

I followed the instructions at http://akrabat.com/php/some-notes-on-zend-server-ce-for-mac-os-x/. Also I downloaded the xdebug.so from the Komodo web site. Zend Debugger and all other Zend extensions are disabled.

So how can I get XDebug working correctly?

© Stack Overflow or respective owner

Related posts about php

Related posts about mac