简体   繁体   English

在调试PHP时,调试行的外观不会更改为Eclipse中的下一行

[英]While debugging PHP, the visual of the debugged line won't change to the next in Eclipse

I am trying to install and debug PHP on ubuntu. 我正在尝试在ubuntu上安装和调试PHP。 I have installed Eclipse with PDT, install Apache and PHP, downloaded and install Xdebug and configured it. 我已经用PDT安装了Eclipse,安装了Apache和PHP,下载并安装了Xdebug并对其进行了配置。

I have created a simple one file project and I am successful in debugging it. 我创建了一个简单的单文件项目,并成功调试了它。 Breakpoints get stops and step through also works. 断点会停下来并逐步执行。

The only problem is that Eclipse does not change the marked line after jumping to the next breakpoint. 唯一的问题是,在跳转到下一个断点后,Eclipse不会更改标记的行。 The previous line is still marked even though the execution is on the other line. 即使执行在另一行,上一行仍会被标记。 The same happens when pressing F8 for the next breakpoint and F6 for stepping. 当按下F8作为下一个断点而按下F6作为步进时,也会发生同样的情况。

The debugging itself is advancing as you can see in the debug window. 如在调试窗口中所见,调试本身正在进行中。 The line number is changing accordingly. 行号正在相应更改。 Only the visual is not. 只有视觉不是。 Any ideas ? 有任何想法吗 ?

在此处输入图片说明

php.ini configuration: php.ini配置:

zend_extension = /usr/lib/php5/20121212/xdebug.so
xdebug.remote_enable=on
xdebug.remote_log=/var/log/xdebug.log
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_port=9000

This is a duplicate of xdebug breakpoints work but step over does not 这是xdebug断点工作的重复, 但单步执行不

You need latest PDT-nightly or downgrade to luna 4.4.0 您需要每晚更新一次PDT或降级到Luna 4.4.0

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

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