问题
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:
I'm using Mozilla Firefox as my external web browser. (Window --> General --> Web Browser)
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