简体   繁体   English

无法使xdebug发送回信息:PhpStorm + xdebug + ec2-linux

[英]Can't get xdebug to send back information: PhpStorm+xdebug+ec2-linux

So according to my php.ini and PhpStorm (validate debugger configuration on web server) xdebug is perfectly installed and configured and PhpStorm is able to receive and send info to xdebug on the remote server. 因此,根据我的php.ini和PhpStorm(在Web服务器上验证调试器配置),xdebug已完美安装和配置,并且PhpStorm能够在远程服务器上接收信息并将其发送到xdebug。

YET, when I add break points and clearly reached those break points, I don't get any debugger info like variables and their contents. 是的,当我添加断点并明确达到这些断点时,我没有得到任何调试器信息,例如变量及其内容。 I have no idea what I'm still missing but here is my phpinfo() screenshot: 我不知道我仍然缺少什么,但这是我的phpinfo()屏幕截图:

在此处输入图片说明

EDIT I also have installed in chrome browser the extension the xdebug helper. 编辑我也已经在chrome浏览器中安装了扩展名xdebug helper。 which is enabled. 已启用。 Here is my xdebug log: 这是我的xdebug日志:

    Log opened at 2017-06-27 04:02:49
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to <my address>:9000.
W: Creating socket for '<my address>:9000', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-06-27 04:02:49

Log opened at 2017-06-27 04:04:58
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to <my address>:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-06-27 04:04:59

Log opened at 2017-06-27 04:05:22
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to <my address>:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-06-27 04:05:22

Log opened at 2017-06-27 04:05:58
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to <my address>:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-06-27 04:05:58

Log opened at 2017-06-27 04:06:05
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to <my address>:9000.
E: Time-out connecting to client. :-(
Log closed at 2017-06-27 04:06:05

EDIT Here is the javascript for the phpstorm bookmark that I use to activate a xdebug session: 编辑这是我用来激活xdebug会话的phpstorm书签的javascript:

javascript:(/** @version 0.5.2 */function() {document.cookie='XDEBUG_SESSION='+'PHPSTORM'+';path=/;';})()

EDIT 编辑

Here is screenshot of my resource monitor on windows that indeed shows phpstorm.exe is listening on port 9000 and that port is open for communication: 这是我在Windows上的资源监视器的屏幕截图,该屏幕确实显示phpstorm.exe正在侦听端口9000,并且该端口已打开以进行通信:

在此处输入图片说明

It looks like Xdebug can't connect to IP address <myaddress> on port 9000. Which should be the IP address of your Windows machine. 看来Xdebug无法连接到端口9000上的IP地址<myaddress> 。这应该是Windows计算机的IP地址。 It can be a Windows Firewall (or "Defender") blocking it, or perhaps there is something else that blocks the connection. 可能是Windows防火墙(或“ Defender”)阻止了它,或者可能是其他阻止了连接的东西。 A time-out likely points this more towards the firewall. 超时可能会将其更多地指向防火墙。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM