PHP (WAMP) - Exlipse PDT, xDebug: not stopping at breakpoint

我的梦境 提交于 2019-12-06 07:18:31

问题


I am able to debug only if I check the Option "Break at First line". If I un-check it and place a breakpoint at some line then the debugger doesn't stop at that line.

I need the debugger to stop at the breakpoints I set, not at the fist line of the file.

I've added the following lines in my php.ini file:

zend_extension = "c:/wamp/bin/php/php5.3.8/ext/php_xdebug-2.1.2-5.3-vc9.dll"
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_port = 9000

I'm also being able to debug properly on Notepad++ DBGp debugger with this same setting.

There are similar posts on SO but none solves my problem. In SO question "Can not make PHP PDT xDebug to stop at breakpoints in Eclipse", DevNull says the problem was solved for Juno, but I'm using Juno myself and having the problem.

Here are some screenshots of my Eclipse settings:

  • Window --> Preferences --> PHP --> Debug:

  • Window --> Preferences --> PHP --> PHP Executables:

  • Window --> Preferences --> PHP --> PHP Executables --> Execution Environment:

  • Window --> Preferences --> PHP --> PHP Interpreters:

  • Window --> Preferences --> PHP --> PHP Servers:

  • I'm using Mozilla Firefox as my external web browser. (Window --> General --> Web Browser)

  • The Project Debug Configuration --> PHP Web Application --> Debugger --> Server Debugger is set to XDebug and XDebug debug port is set to 9000
  • Hope those will help someone help me.


    回答1:


    May be you should try to upgrade xdebug version?

    Also how did you installed Juno? Just clean install or update?

    Try clean install in another folder and copy you workspace settings. Or try without them.




    回答2:


    For those that accepted solution doesn't work:

    Check xdebug setting: xdebug.remote_enable. Must be ON (Go to phpinfo() to see current setting). Reference here



    来源:https://stackoverflow.com/questions/14092105/php-wamp-exlipse-pdt-xdebug-not-stopping-at-breakpoint

    易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
    该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!