xdebug没有';不能在带有Netbeans的Mac OS X 10.7平台上工作


xdebug doesn't work in Mac OS X 10.7 platform with Netbeans

我正在尝试在macos x 10.7上配置并运行xdebug,它安装了Mamp和netbeans 7.1。我添加到php.ini文件

[xdebug]
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
zend_extension="/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"

并停用Zend,但尽管所有的netbeans都显示消息为Xdebug,但它并没有激活,而且在phpinfo()中,我没有看到任何关于Xdebug的gui。

.so文件的路径似乎是错误的。请确保它存在。在我的MAMP安装中,它(适用于PHP5.3)存在于中

 /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so

另外,不要忘记在更改MAMP后重新启动它。