首页 > 解决方案 > 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

有什么问题?

标签: phpeclipsexdebug

解决方案


推荐阅读