在 Mac OS X Lion 上启用 Xdebug [英] Enabling Xdebug on Mac OS X Lion
问题描述
我一直在尝试为 Mac OS X Lion 启用 Xdebug,但无法使其工作.这应该很简单,但它对我不起作用.
i've been trying to enable Xdebug for Mac OS X Lion, but can't make it work. This should be pretty straight forward but it just isn't working for me.
这些是我采取的步骤:
1 - 取消注释 php.ini 文件的这一行:
1 - Uncommented this line of the php.ini file:
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
2 - 重新启动我的 Apache 服务器
2 - Restarted my Apache Server with
sudo apachectl restart
3 - 检查它是否通过 phpinfo() 函数启用.实际上,它既作为 Zend 模块启用,又作为单独的模块启用.
3 - Checked that it is enabled via the phpinfo() function. It is in fact enabled both as Zend module and as a separate module.
但它不起作用.每次在我的 php 脚本中发生错误时,它们都会默认使用丑陋的错误处理来显示.var_dumps 也不起作用.
But it doesn't work. Everytime an error occurs in my php scripts, they are displayed using the ugly error handling by default. var_dumps also don't work.
我错过了一步吗?
推荐答案
确保您的 html_errors
和 display_errors
已通过 php.ini 文件打开.
Be sure your html_errors
and display_errors
are turned on via your php.ini file.
这篇关于在 Mac OS X Lion 上启用 Xdebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!