2014-09-30 06:48 阅读 59


I am using Eclipse for PHP Luna Service Release 1 (4.4.1), and try to install xdebug for debugging. I follow this blog for for setting xdebug on xampp 1.8.1. Follow is my php.ini settings.

zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"

Basically it will stop on the break point i set, but then i press [F6], it will not go to next line.

But in debug dialog window, line number keep going, and variables also change too.

Does anyone knows what wrong on this? thanks.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • 已采纳
    douxian9060 douxian9060 2014-09-30 15:21

    Yes, this seems to be a bug, I hit it after updating.

    It does step to the next line though, it just doesn't update the highlight and current position.

    Over the last few years I've experienced quite a few of such annoying bugs in Eclipse IDE for PHP Developers (PDT) with official updates. One might get the impression that the developers don't pay much attention to regression testing.


    If you've updated Eclipse recently, open "Help" -> "Installation Details". Click on the tab "Installation History" and find an entry that doesn't contain version 4.4.1 (it's here).

    The Eclipse project page is a bit messy in my opinion (or I'm just blind), but you can fortunately crawl a mirror site to find older releases:

    点赞 评论 复制链接分享
  • douxing8323 douxing8323 2014-11-10 14:40

    I think I found a bug report on this issue:

    It's marked as solved, so maybe on the next release this issue should be gone.

    EDIT: updating PDT to version 3.3.2 solves this issue (at least in my install)

    点赞 评论 复制链接分享
  • dongxiaoguang9108 dongxiaoguang9108 2016-04-19 14:08

    I also had the same problem, where the stepping through the code would not go to the next line. I realized that the problem was that the remote php script which I was debugging, had a line of code which was not present in the local php script in Eclipse. Updating the local php script to match the remote php script fixed the problem.

    点赞 评论 复制链接分享