【发布时间】:2021-04-28 11:32:02
【问题描述】:
我犯了一个错误,允许安装 Ubuntu 18.04 更新。使用相同配置执行此操作后,NetBeans 12.1 无法连接到 Xdebug。我认为问题出在较新版本的 Xdebug (3.0.2) 上。
# cat /etc/php/7.2/apache2/conf.d/20-xdebug.ini
zend_extension=xdebug.so
xdebug.remote_enable=on
xdebug.remote_log="/var/log/xdebug.log"
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_port=9003
有人遇到过这样的问题吗?
【问题讨论】:
-
1) “NetBeans 12.1 无法连接到 Xdebug” 否。它是 Xdebug 连接到 IDE 而不是其他方式。 2) 是的,它是 Xdebug v3——v3 使用了与 v2.2 不同的配置参数。您当前的 Xdebug 配置在 v3 中什么都不做。只需检查xdebug.org/docs/upgrade_guide 并相应地更新您的配置(只需重命名配置参数,添加一个新的,删除现有的)。
-
感谢您的回答!这真的很有帮助!工作配置:
xdebug.mode=debug,develop
标签: php netbeans xdebug php-7 xdebug-3