doupeng3501 2012-11-13 22:52
浏览 113

Eclipse-Juno断点没有用PHP 5.4.8-1命中

Just installed Eclipse-Juno and the associated PHP Development Tools (PDT) SDK from org.eclipse.php.sdk.feature.group.

php --version yields:
    PHP 5.4.8-1~precise+1 (cli) (built: Oct 29 2012 14:58:46) 
    Copyright (c) 1997-2012 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans

Php -m indicates that xdebug is loaded.
    [Zend Modules]
    Xdebug

In eclipse, Windows->Preferences->Php->Debug->PHP Debubber is Xdebug.

However, none of my breakpoints hit.

What should I check to make debug breakpoints work for PHP on Eclipse-Juno?

  • 写回答

1条回答 默认 最新

  • duanlidi1051 2013-06-14 10:47
    关注

    I suppose, you are calling your scripts from a web browser. You need to tell xdebug to actually stop on breakpoints. If you are using Firefox, you can use easyXdebug for that. Make sure to enable remote debug in your xdebug.ini (explained in the extension preferences) and also in eclipse (Windows->Preferences->Php->Debug->PHP Debugger->Config). Then you can enable debug by clicking the little icon in your browser status bar for the next request.

    For other browsers there should be Plugins as well, but I haven't used any.

    评论

报告相同问题?

悬赏问题

  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号