【发布时间】:2014-12-02 22:34:18
【问题描述】:
我已经在我的 ubuntu 14.04 中安装了 php5-xdebug。但是,当我尝试将默认调试器“zend debugger”更改为“xdebug”时,我无法选择“xdebug”。 看我的eclipse配置: 那么我的日食有什么问题?
php -m的结果:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xdebug
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Xdebug
Zend OPcache
【问题讨论】:
-
健全性检查:您是否重新启动计算机/eclipse/Web 服务器,重新加载所有配置等?
-
@TomaszKowalczyk 是的。我重新启动了一切。
-
你在phpinfo中看到xdebug了吗?
-
@DaveCoast 不,我没看到。但我真的是通过 'sudo apt-get install php5-xdebug' 安装的
-
@tqjustc - 听起来您安装了 xdebug 但没有告诉 php 您要使用新安装的扩展 (xdebug)。您需要编辑 php.ini。这是 ubuntu 的链接 - purencool.com/installing-xdebug-on-ubuntu。如果你在 php.ini 中没有看到 xdebug,eclipse 也不会。
标签: php eclipse eclipse-plugin xdebug