我正在尝试在ubuntu linux系统上安装xdebug。
纠正.so文件,使安装一切正确,也许只是php.ini配置?
我使用安装向导。
Installation Wizard Step by Step
我在第9步,在我的INI文件中添加了zend_extension。 在其他INI文件上添加了Zend扩展命令。
当我使用PHP_INFO()时,xdebug只是没有出现在列表中。
我在Google上四处搜寻,似乎其他人的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
但是我没有吗?
所以我将它们添加到了php7.4 / cli / php.ini中 仍然没有显示在我的phpinfo上?
我去终端输入php info xdebug似乎在那里。 xdebug支持=>启用版本=> 2.9.6
但是我创建了一个testpage.php并将phpinfo();
xdebug没有出现在页面中吗?
我想念什么吗?
答案 0 :(得分:0)
是的,您需要更新php.ini文件。下面是我在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"
在php.ini文件中进行任何更改之后,必须重新启动服务器。