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 用三极管设计—个共射极放大电路
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示