使用Xdebug时,PhpStorm从不在断点处停止

使用Xdebug时,PhpStorm从不在断点处停止,php,debugging,phpstorm,xdebug,breakpoints,Php,Debugging,Phpstorm,Xdebug,Breakpoints,我尝试将PhpStorm配置为在远程服务器上使用Xdebug。通过使用WAMP在本地主机上托管Xdebug,它可以正常工作 我用Putty从我的远程服务器隧道端口9000,Telnet正在工作,我得到了黑屏 Xdebug配置如下: zend_extension = /usr/lib64/php/modules/xdebug.so xdebug.remote_enable = 1 xdebug.remote_host="127.0.0.1" xdebug.remote_autostart =1 x

我尝试将PhpStorm配置为在远程服务器上使用Xdebug。通过使用WAMP在本地主机上托管Xdebug,它可以正常工作

我用Putty从我的远程服务器隧道端口9000,Telnet正在工作,我得到了黑屏

Xdebug配置如下:

zend_extension = /usr/lib64/php/modules/xdebug.so
xdebug.remote_enable = 1
xdebug.remote_host="127.0.0.1"
xdebug.remote_autostart =1
xdebug.remote_enable =1
xdebug.remote_port=9000
每当我在PhpStorm上按debug时,它都会出于某种原因阻塞“连接到本地主机:3308”

我用‪Xdebug助手‬ 1.6.1铬合金63。在我的服务器上,我使用Xdebug 2.6和PHP版本7.1.10。我使用PhpStorm 2017.3.1

编辑1: 服务器端似乎没有打开日志这是日志:

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31

Log opened at 2017-12-26 11:11:31
I: Connecting to configured address/port: 127.0.0.1:9009.
W: Creating socket for '127.0.0.1:9009', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2017-12-26 11:11:31
本地到端口9009的Telnet被拒绝


有人知道它为什么不工作吗?

将端口更改为9009,不要忘记在PhpStorm中将此设置更改为9009,不要忘记在PhpStorm中将此设置更改为9009。1)最好坚持使用xdebug的稳定2.5.5版本--2.6仍处于alpha阶段--无需冒险,特别是如果您不使用PHP7.2,您在服务器上运行什么web服务器?如何在那里运行PHP?那是php fpm吗?如果是这样的话——按照建议操作并将xdebug端口更改为9001(在远程服务器上)——9000可能已经被php pfm使用;3) xdebug日志要说什么?4) 它在“连接到本地主机:3308”上出现问题在PhpStorm中检查您的运行/调试配置——他们记住URL。这里还有两个问题我可以添加go@LazyOne的列表:1)chmod 777到
/whereserver/is/xdebug.log
,2)最小化php窗口,看看是否没有窗口要求您a)选择要调试的进程,b)将uri匹配到物理文件(PhpStorm会这样做,隐藏关键提示)@lazyone 1)这是xdebug的正式站点发送给我的。2) nginx。PHP-FPM。改为9009端口。谢谢3)编辑附件1 4)你能将我链接到说明吗?@YvesLeBorg 1)完成!2) 我没见过。b) 你的意思是什么?1)最好坚持xdebug稳定的2.5.5版本——2.6仍处于alpha阶段——不需要冒险,特别是如果你不使用PHP7.2 2,你在服务器上运行什么web服务器?如何在那里运行PHP?那是php fpm吗?如果是这样的话——按照建议操作并将xdebug端口更改为9001(在远程服务器上)——9000可能已经被php pfm使用;3) xdebug日志要说什么?4) 它在“连接到本地主机:3308”上出现问题在PhpStorm中检查您的运行/调试配置——他们记住URL。这里还有两个问题我可以添加go@LazyOne的列表:1)chmod 777到
/whereserver/is/xdebug.log
,2)最小化php窗口,看看是否没有窗口要求您a)选择要调试的进程,b)将uri匹配到物理文件(PhpStorm会这样做,隐藏关键提示)@lazyone 1)这是xdebug的正式站点发送给我的。2) nginx。PHP-FPM。改为9009端口。谢谢3)编辑附件1 4)你能将我链接到说明吗?@YvesLeBorg 1)完成!2) 我没见过。b) 你的意思是什么?按你说的更改它,参见编辑1。到目前为止没有成功。如您所说进行更改,请参见编辑1。到目前为止没有成功。