douluan5444 2015-11-25 16:13
浏览 135

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

I want to install debug and integrate it with PhpStorm.

I went through all the steps needed. I add this lines to php.ini file:

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

this is my created debugger screenshot :

enter image description here

And this is screenshot of my breakpoint on index method of a Controller named HomeController:

enter image description here

And this is xdebug section on php_info() page:

enter image description here

But every time I press Debug Button in phpStorm , home page open complete as a address like:

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

and in the debugger tab show this message like this:

Waiting for incoming connection with ide key '17288'

I research on the google and try different ways But I did not answer.

Update : New I realized that Debugging via Xdebug works fine in normal Projects(no laravel). So this Problem can not be the result of PHPStorm version. For example when Open page contain breakPoints in localhost:8000 breakpoints ignored but when I open that page in normal form via localhost/MyProject/public debugging works fine.

  • 写回答

2条回答 默认 最新

  • donglie9067 2015-11-25 18:16
    关注

    Even if you have set everything correctly take care that PhpStorm will not break on the line of a method declaration (as you have done in your case).

    See also http://bugs.xdebug.org/view.php?id=618

    As Derick Rethans points out in the above link:

    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.

    So move the breakpoint to the first executable line inside the method and try again.

    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘