xdebug 在使用 Netbeans 的 Mac OS X 10.7 平台上不起作用

发布于 2025-01-05 09:51:52 字数 468 浏览 2 评论 0原文

我正在尝试在 mac os 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。

I'm trying to configure and let work xdebug on mac os x 10.7 where it is installed Mamp and netbeans 7.1. I added to php.ini file

[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"

and deactivate Zend but despite all netbeans show the message as Xdebug it is not activate and in phpinfo() I didn't see any gui about xdebug.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

残龙傲雪 2025-01-12 09:51:52

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

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

更改后不要忘记重新启动 MAMP。

The path to the .so file seems wrong. Make sure it exists. In my MAMP installation it lives (for PHP5.3) in

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

Also don't forget to restart MAMP after changing it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文