Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
正在等待带有laravel的PHPStorm上ide密钥消息的传入连接_Php_Laravel_Phpstorm - Fatal编程技术网

正在等待带有laravel的PHPStorm上ide密钥消息的传入连接

正在等待带有laravel的PHPStorm上ide密钥消息的传入连接,php,laravel,phpstorm,Php,Laravel,Phpstorm,我想安装debug并将其与PhpStorm集成 我完成了所有需要的步骤。 我将以下行添加到php.ini文件: zend_extension = "D:\wamp\bin\php\php5.5.12\ext\php_xdebug-2.3.3-5.5-vc11-x86_64.dll" xdebug.extended_info=1 xdebug.remote_enable=1 xdebug.profiler_enable= true xdebug.remote_handler=dbgp xdebug

我想安装debug并将其与PhpStorm集成

我完成了所有需要的步骤。 我将以下行添加到php.ini文件:

zend_extension = "D:\wamp\bin\php\php5.5.12\ext\php_xdebug-2.3.3-5.5-vc11-x86_64.dll"
xdebug.extended_info=1
xdebug.remote_enable=1
xdebug.profiler_enable= true
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
这是我创建的调试器屏幕截图:

这是我在名为HomeController的控制器的索引方法上的断点的屏幕截图:

这是php_info()页面上的xdebug部分:

但每次我在phpStorm中按Debug按钮时,主页都会以如下地址打开:

http://localhost:8000/?XDEBUG_SESSION_START=17288
在debugger选项卡中,显示如下消息:

Waiting for incoming connection with ide key '17288'
我在谷歌上搜索并尝试不同的方法,但我没有回答

更新: 新的一天,我意识到通过Xdebug进行调试在正常项目中效果很好(没有laravel)。所以这个问题不可能是PHPStorm版本的结果。
例如,当打开的页面在
localhost:8000
中包含断点时,断点被忽略,但当我通过
localhost/MyProject/public以正常形式打开该页面时,调试工作正常。

即使您已正确设置了所有内容,也要注意PhpStorm不会在方法声明行中断(正如您在您的案例中所做的那样)

另见

正如德里克·雷特汉斯在上述链接中指出的:

PHP在这些行上看不到任何代码,因此不能有任何断点。但是,如果您想中断方法调用,调试协议会实现这一点。不过,我不知道PHPStorm是否提供了该功能


因此,请将断点移动到方法内的第一个可执行行,然后重试。

我遇到了同样的问题,最后找到了它: 将断点放在web.php(laravel5.X)或route.php(laravel4.X)上 在看到“从xdebug传入连接”页面后,只需单击accept,一切都会变得正常

1)请提供通过浏览器捕获的
phpinfo()输出的xdebug部分2)提供xdebug日志--@LazyOne,我添加了
xdebug.remote\u log=“D:\xdebug.log”
选项并运行脚本,但没有创建任何文件,也没有记录任何内容。1)这不是我要找的xdebug部分。这可能意味着xdebug可能未处于活动状态或未看到调试请求。尝试放置
xdebug_break()在代码中(编程断点)。我添加了Xdebug部分<代码>xdebug_break()
不返回任何内容。xdebug\u break不应该返回任何内容——它应该触发调试会话。xdebug配置似乎还可以。您也可以尝试
xdebug.remote\u autostart=1
。除此之外--再次尝试阅读手册(我不能说缺少了什么,特别是因为xdebug日志是空的):1)2)我将断点移动到第15行,
$latestPosts
变量存在。但同样没有发生任何事情,同样的信息也显示了出来。