【发布时间】:2013-02-20 09:18:53
【问题描述】:
我已经多次配置了 xdebug 和 php,但是回顾我的旧笔记,无法帮助我重新配置它。
我做了以下事情:
- 已安装
LAMP - 已安装
php5-xdebug - 重启apache
sudo /etc/init.d/apache2 restart -
/etc/php5/apache2/conf.d/xdebug.ini现在看起来像这样:
xdebug.ini
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable=On
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
我创建了一个仅包含 phpinfo(); 的 php 文件,当我在浏览器中加载该页面时,我没有像往常一样获得包含所有 xdebug 详细信息的 xdebug 部分
xdebug.collect
xdebug.dump
xdebug.profiler
等等等等
这一次我没有做错什么?
The OS is Ubuntu 12.04
PHP version is 5.3.10
Apache version is 2.2.22
Xdebug version is 2.1.0-1
【问题讨论】:
-
您是否尝试过正确格式化 xdebug.ini 并检查它是否包含在整体配置中?
-
文本在普通文本编辑器中看起来没问题。
-
为什么是
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so?我有/usr/lib/php5/20090626/xdebug.so(注意+lfs)(我有相同的操作系统) -
你检查/usr/lib/php5/20090626+lfs/xdebug.so 是否存在?安装xdebug后重启服务器了吗?
-
加载了什么ini文件,有xdebug吗?
/etc/php5/apache2/conf.d/是否经过检查?xdebug.ini对您的网络服务器可读吗? PHP 是否记录任何启动错误?
标签: php linux apache lamp xdebug