加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

等待使用带有laravel的PHPStorm上的ide键消息的传入连接

发布时间:2020-12-14 19:39:24 所属栏目:大数据 来源:网络整理
导读:我想安装调试并将其与PhpStorm集成. 我完成了所需的所有步骤. 我将这行添加到php.ini文件中: zend_extension = "D:wampbinphpphp5.5.12extphp_xdebug-2.3.3-5.5-vc11-x86_64.dll"xdebug.extended_info=1xdebug.remote_enable=1xdebug.profiler_enable
我想安装调试并将其与PhpStorm集成.

我完成了所需的所有步骤.
我将这行添加到php.ini文件中:

zend_extension = "D:wampbinphpphp5.5.12extphp_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

这是我创建的调试器截图:

enter image description here

这是关于名为HomeController的Controller的索引方法的断点的截图:

enter image description here

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

enter image description here

但是每次我在phpStorm中按下Debug按钮,主页打开完成就像一个地址:

http://localhost:8000/?XDEBUG_SESSION_START=17288

并在调试器选项卡中显示如下消息:

Waiting for incoming connection with ide key '17288'

我研究谷歌并尝试不同的方式但我没有回答.

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

解决方法

即使你已经正确设置了所有内容,也要注意PhpStorm不会在方法声明的界限上破坏(就像你在你的情况下所做的那样).

另见http://bugs.xdebug.org/view.php?id=618

正如Derick Rethans在上述链接中指出的那样:

PHP doesn’t see any code on those lines,so there can not be any breakpoint. However,if you want to break on method calls,the debugging protocol implements that. I don’t know whether PHPStorm provides that functionality though.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读