简体   繁体   English

如何使Eclipse调试自动跳到要调试的行

[英]How to make Eclipse debugging automatically jump to line being debugged

When debugging PHP code, my Eclipse (Luna) doesn't automatically move to the line currently being debugged. 在调试PHP代码时,我的Eclipse(Luna)不会自动移至当前正在调试的行。

Is there a configuration setting that will make it so that the debugger automatically moves to the line currently debugging? 是否有配置设置可以使调试器自动移至当前正在调试的行? For me, when I hit Step Over it moves to the next line in the "Debug" window but the source code view jumps to my breakpoint instead. 对我而言,当我单击“跳过”时,它将移至“调试”窗口中的下一行,但源代码视图将跳至我的断点。 Then I have to scroll to the currently debugging line of code until I hit Step Over again, which brings me back to the breakpoint. 然后,我必须滚动到当前调试的代码行,直到再次单击“跳过”,这使我回到断点。

What's strange is that I can click on any of the other "Debugger" linenos in the top left window and it will jump to the spot in the source, but if I click on the top one, the one I want to go to, it goes to the break point, even though the lineno is not the lineno of the breakpoint - I'm past that break point and don't need to keep looking at it. 奇怪的是,我可以单击左上方窗口中的任何其他“ Debugger” linenos,它将跳至源代码中的位置,但是如果单击顶部的,我想转到的那个到达断点,即使lineno不是该断点的lineno-我已经越过了该断点,不需要继续查看它。

This is a bug, see also xdebug breakpoints work but step over does not 这是一个错误,另请参见xdebug断点的工作原理,但单步执行不起作用

Just upgrade to Luna SR2 and everything will be fine ;) 只需升级到Luna SR2,一切都会很好;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM