php - Eclipse PHP Photon Xdebug 在 Ubuntu 18.04 上不起作用
问题描述
我改变了我的环境。
我之前使用过 XAMPP,它运行良好。但是当我更改为纯 PHP 和 Apache 2 时,我的 Eclipse Photon 停止识别我的 Xdebug 安装。
但它已安装。它不工作。
我phpinfo()
正在向我展示:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.22-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
在我的 php.ini (/etc/php/7.1/apache2/php.ini) 中,我添加了以下信息:
zend_extension=/usr/lib/php/20160303/xdebug.so
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"
该文件存在/usr/lib/php/20160303/xdebug.so
有什么问题?
解决方案
推荐阅读
- node.js - logstash vs nodejs应用程序的任务队列
- python - Python目录爬虫扫描各类文件并搜索关键字
- reactjs - 使用 react-router v4 更改 url 中的参数之一
- batch-file - 如何批量检查多个空变量
- python - 在 Tensorflow 中,当使用 dataset.shuffle(1000) 时,我是否只使用了整个数据集中的 1000 个数据?
- swift - 在 iOS 中注销 sinch 用户
- html - 闪亮的选择下拉菜单向上打开
- mysql - 无法连接到 Windows 10 上的 mysql 服务器
- spring-boot - spring-boot 与 liquibase @OneToMany 映射
- java - 如何解决“包 org.openqa.selenium.winium 不存在”错误?