Jetbrains Gateway:与Dbgpproxy失败的调试PHP

发布于 2025-02-01 03:20:58 字数 1470 浏览 6 评论 0原文

我花了几个小时试图弄清楚如何,但是我无法与Jetbrains客户端进行调试...在浏览器中加载页面时,我越多,

“

,然后将其固定在那里。浏览器中的页面永远加载。

启动dbgpproxy + Jetbrains客户端寄存器IDE

”输入图像说明在此处”

php -v输出:

PHP 7.4.28 (cli) (built: Feb 17 2022 16:17:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
   with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
   with Xdebug v3.0.2, Copyright (c) 2002-2021, by Derick Rethans

XDEBUG配置:

xdebug.idekey=PHPSTORM
xdebug.client_host=127.0.0.1
xdebug.client_port=9003
xdebug.mode=debug
xdebug.log="/var/log/xdebug.log"

DBGPPPROXY启动命令:

dbgpProxy -i 127.0.0.1:9001 -s 127.0.0.1:9003

JETBRAINS CLISTRAINS CLINECTURATION CLOILTURATION

PHP > Debug on host > Xdebug : debug port 9099
PHP > Debug > DBGp Proxy on host : IDE key : PHPStorm, Host 127.0.0.1, Port 9001

浏览器浏览器扩展程序:Xdebug Helper v 1.0.6

注意:就像具有phpstorm的魅力一样,但是对于Jetbrains Client,我错过了导致IDE关闭连接的东西。

I spent hours trying to figure out how, but I can't manage to debug with JetBrains Client... The more I get when I load a page in a browser is

enter image description here

And then it stuck there. Page in browser is loading forever.

Launching dbgpProxy + JetBrains client register IDE

enter image description here

php -v output:

PHP 7.4.28 (cli) (built: Feb 17 2022 16:17:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
   with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
   with Xdebug v3.0.2, Copyright (c) 2002-2021, by Derick Rethans

Xdebug configuration :

xdebug.idekey=PHPSTORM
xdebug.client_host=127.0.0.1
xdebug.client_port=9003
xdebug.mode=debug
xdebug.log="/var/log/xdebug.log"

dbgpProxy launch command:

dbgpProxy -i 127.0.0.1:9001 -s 127.0.0.1:9003

JetBrains client configuration

PHP > Debug on host > Xdebug : debug port 9099
PHP > Debug > DBGp Proxy on host : IDE key : PHPStorm, Host 127.0.0.1, Port 9001

Browser extension : Xdebug helper v 1.0.6

NOTE : It worked like a charm with PhpStorm, but with JetBrains Client I miss something which leads the IDE closing the connection.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文