在Mac OS X Lion上启用Xdebug [英] Enabling Xdebug on Mac OS X Lion

查看:110
本文介绍了在Mac OS X Lion上启用Xdebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试为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.

我错过了一步吗?

推荐答案

请确保通过您的php.ini文件打开了html_errorsdisplay_errors.

Be sure your html_errors and display_errors are turned on via your php.ini file.

这篇关于在Mac OS X Lion上启用Xdebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆