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 Stata 面板数据模型选择
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用