首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xdebug已安装,但未显示在phpinfo上

Xdebug已安装,但未显示在phpinfo上
EN

Stack Overflow用户
提问于 2020-08-01 02:26:49
回答 1查看 672关注 0票数 2

我正在尝试在我的ubuntu linux系统上安装xdebug。

正确的.so文件,使安装一切正确,只是可能的php.ini配置?

我使用安装向导。

Installation Wizard Step by Step

我在第9步,在我的INI文件中添加了zend_extension。在其他INI文件上添加了Zend扩展命令。

当我使用PHP_INFO()时,xdebug不会出现在列表中。

我用谷歌搜索了一下,似乎其他人的php.ini文件里也有这个

代码语言:javascript
复制
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/tmp

但我的不是吗?

所以我把它们添加到我的php7.4/cli/php.ini中,但在我的phpinfo上仍然没有显示吗?

我转到终端,输入php info xdebug seems在那里。xdebug支持启用=>的版本=> 2.9.6

但是我创建了一个testpage.php,并把phpinfo();

是否未在页面中显示xdebug?

我是不是遗漏了什么?

EN

回答 1

Stack Overflow用户

发布于 2020-08-01 02:41:54

是的,你需要更新你的php.ini文件。下面是我在php.ini文件中添加的代码行。

代码语言:javascript
复制
[XDebug]
zend_extension = "path of you extension example /usr/lib/php/xdebub.so"
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"

在php.ini文件中发生任何更改后,必须重新启动服务器。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63197227

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档