我正在尝试在我的ubuntu linux系统上安装xdebug。
正确的.so文件,使安装一切正确,只是可能的php.ini配置?
我使用安装向导。
Installation Wizard Step by Step
我在第9步,在我的INI文件中添加了zend_extension。在其他INI文件上添加了Zend扩展命令。
当我使用PHP_INFO()时,xdebug不会出现在列表中。
我用谷歌搜索了一下,似乎其他人的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 seems在那里。xdebug支持启用=>的版本=> 2.9.6
但是我创建了一个testpage.php,并把phpinfo();
是否未在页面中显示xdebug?
我是不是遗漏了什么?
发布于 2020-08-01 02:41:54
是的,你需要更新你的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文件中发生任何更改后,必须重新启动服务器。
https://stackoverflow.com/questions/63197227
复制相似问题