Eclipse PDT + xdebug: step through code broken

試著忘記壹切 提交于 2019-12-12 14:27:26

问题


I'm using PHP 5.6.2 with xdebug 2.2.5 and Eclipse 4.4.1 with PDT 3.3.1. I'm trying to setup the debugger (xdebug) on a local server (localhost) and something appears to be broken.

When I start a debugging session eclipse switches to the debug perspective and stops at first line (as checked in config). The problem is that although the debugger (in debug window) seems to follow the execution as I step through code (it shows code lines as it advances), the window below that opens the source file and shows the code remains on the first position like/breakpoint it hits. It seems to be disconnected from the debugger...

Does anyone knows how to fix the problem ? Is it me, or there is a bug in this ? It used to work with older php/eclipse combination. I've upgraded php to 5.6 in between, as well as all it's dependencies. Same for eclipse. It's hard to pin point the issue at this point.

I'm using nginx with php-fpm.

Xdebug config in php.ini

[xdebug]
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"

回答1:


This is a duplicate of xdebug breakpoints work but step over does not

You need latest PDT-nightly or downgrade to luna 4.4.0



来源:https://stackoverflow.com/questions/26457139/eclipse-pdt-xdebug-step-through-code-broken

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