Jetbrains Gateway:与Dbgpproxy失败的调试PHP
我花了几个小时试图弄清楚如何,但是我无法与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
And then it stuck there. Page in browser is loading forever.
Launching dbgpProxy + JetBrains client register IDE
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论