NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Playing behind the beat: PHPEd debug cursor on wrong line


Joined: 03 Mar 2006
Posts: 10
Location: UK
Reply with quote
Hello,

Win2K SP4,
PHPEd 4.5,
PHP Version 5.1.2
Apache/2.0.55 local,
extension=php_dbg.dll-5.1.2

PHP has taken to putting the debug cursor on the wrong line so that, for example, I can set a breakpoint on a method call, the cursor stops there, I click "Step Into", and it steps into the wrong method. It also stops on blank lines and skips lines with code. This happens even if PHPEd is the first application to run after rebooting.

Does anyone know a fix?

Alan.
View user's profileFind all posts by AlanNPSend private message


Joined: 27 Mar 2006
Posts: 77
Reply with quote
I have seen this too... but only when I edit the code after I start the debugger.
View user's profileFind all posts by twSend private message


Joined: 03 Mar 2006
Posts: 10
Location: UK
Reply with quote
tw wrote:
I have seen this too... but only when I edit the code after I start the debugger.

That's a relief, I knew I didn't imagine it. I wasn't changing the code during debugging.

I completely failed to reproduce it in a simple application. In the real application I was calling a method of an object that hadn't been created. When I fixed that, the cursor positioned itself correctly. I wrote a simple application with a similar bug, but that ran correctly in the debugger until it hit the bug, then it died.

It seems that the bug in my code was necessary for the cursor to stray, but I'm puzzled that I can't make it do so in a short program.

Alan.
View user's profileFind all posts by AlanNPSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
As far as I know there is no problem with debugger or PhpED.
If you're using HEREDOC, the following post is relevant to the problem:
php-bugged-when-going-through-html-code-t1944.html
If you are not using HEREDOCs, check if web server runs the same files as ones in the project.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 03 Mar 2006
Posts: 10
Location: UK
Reply with quote
ddmitrie wrote:
As far as I know there is no problem with debugger or PhpED.
If you're using HEREDOC, the following post is relevant to the problem:
php-bugged-when-going-through-html-code-t1944.html


Thanks, that seems to be the solution. I re-introduced the bug then put the HEREDOCS into a separate file, and the cursor now does what I would expect.

Alan.
View user's profileFind all posts by AlanNPSend private message
Playing behind the beat: PHPEd debug cursor on wrong line
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic