PhpStorm 不断要求配置“来自 Xdebug 的传入连接”,而我已经有了服务器配置

问题描述 投票:0回答:1

我已经在我的 PHP 容器上安装了 Xdebug。为了完整起见:我使用 docker-compose 启动 php-fpm、nginx、mysql 和 redis。

xdebug.ini中使用的配置:

zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so

xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.default_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=host.docker.internal
xdebug.remote_port=9001
xdebug.remote_connect_back=0
xdebug.var_display_max_depth=-1
xdebug.var_display_max_children=-1
xdebug.var_display_max_data=-1
xdebug.idekey="PHPSTORM"
xdebug.remote_log="/tmp/xdebug.log"

我使用端口 9001 以免与 php-fpm 发生冲突。

我不断收到此对话框,即使单击“确定”,它也不会在我的断点处中断:

服务器配置:

docker phpstorm xdebug
1个回答
0
投票

你是如何解决这个问题的?

© www.soinside.com 2019 - 2024. All rights reserved.