简体   繁体   English

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

[英]Xdebug is installed, but not showing up on phpinfo

I'm trying to install xdebug on my ubuntu linux system.我正在尝试在我的 ubuntu linux 系统上安装 xdebug。

Correct.so file, make install everything is correct, just maybe the php.ini configuration?正确.so文件,make install一切都正确,可能是php.ini配置?

I use the installation wizard.我使用安装向导。

Installation Wizard Step by Step安装向导一步一步

I am at step 9, added the zend_extension on my INI file.我在第 9 步,在我的 INI 文件中添加了 zend_extension。 Added Zend Extension Command on other INI file.在其他 INI 文件上添加了 Zend 扩展命令。

when i PHP_INFO(), xdebug just does not appear in the list.当我 PHP_INFO() 时,xdebug 只是没有出现在列表中。

I googled around and seems other people php.ini file have this我四处搜索,似乎其他人 php.ini 文件有这个

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

but mine does not?但我的没有?

So i added those into my php7.4/cli/php.ini still does not show on my phpinfo?所以我将这些添加到我的 php7.4/cli/php.ini 中仍然没有显示在我的 phpinfo 中?

I go to the terminal and type php info xdebug seems there.我 go 到终端并输入 php 信息 xdebug 似乎在那里。 xdebug support => enabled Version => 2.9.6 xdebug 支持 => 启用版本 => 2.9.6

but i created a testpage.php and put phpinfo();但我创建了一个 testpage.php 并放入 phpinfo();

xdebug does not appear in the page? xdebug 没有出现在页面中?

Am i missing something?我错过了什么吗?

Yes you need to update your php.ini file.是的,您需要更新您的 php.ini 文件。 Below is the code lines that i added in my php.ini file.下面是我在 php.ini 文件中添加的代码行。

[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"

Must restart your server after any changes in php.ini file.在 php.ini 文件发生任何更改后,必须重新启动服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM