phpstorm,xdebug和vagrant仍在等待传入连接 [英] Phpstorm, xdebug and vagrant still waiting for incoming connection

查看:124
本文介绍了phpstorm,xdebug和vagrant仍在等待传入连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这让我很烦,主要是因为它工作正常,然后突然的断点停止了,当我检查调试器时,它只是在等待传入的连接.

This is annoying me, mainly because it was working fine then all of a sudden breakpoints stopped breaking and when i checked debugger it was just waiting for incoming connection.

我的无业游民的机器正在private_ip: 192.168.13.37

My vagrant machine is running on private_ip: 192.168.13.37

我的xdebug.ini配置如下:

zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable = on
xdebug.remote_connect_back = on
xdebug.remote_port = 9020

这些是我的PHPstorm调试设置:

These are my PHPstorm debug settings:

我在PHPstorm中有一个无所事事的服务器设置,其中有一个主机dev.website.com,它指向Windows主机文件中的正确IP,端口为80,并且文件夹已正确映射.

I have a vagrant server setup in PHPstorm which has a host of dev.website.com which points at the correct IP in windows host file, the port is 80 and the folders are mapped correctly.

我还设置了PHP应用程序以使用说明的服务器,该服务器的起始URL为/.

I also have PHP application set up to use the explained server which a start url of / .

我单击开始侦听PHP调试连接,然后单击绿色的小bug图标开始调试.这将使用以下查询字符串?XDEBUG_SESSION_START = 18359 启动项目,但是当我在调试窗口中查看PHPstorm时,它会说waiting for incoming connection with ide key 18359

I have clicked start listening for PHP debug connections, then clicked the little green bug icon to start debugging. This launches the project with the following query string ?XDEBUG_SESSION_START=18359 but when I look in PHPstorm in the debug window it will say waiting for incoming connection with ide key 18359

有什么想法可以使其再次正常工作吗?

Any ideas how to get it working again?

修改 添加了xdebug日志: pastebin

Edit Added xdebug log : pastebin

推荐答案

遇到相同的问题,是什么帮助我设置了:

Had identical problem, what helped me is setting :

xdebug.remote_autostart = 1

我的其他设置是:

zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port=9010
xdebug.idekey=phpstorm
xdebug.remote_autostart = 1
xdebug.remote_handler=dbgp
xdebug.remote_host=10.0.2.2

这篇关于phpstorm,xdebug和vagrant仍在等待传入连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆