NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Debugging local: DBG steps into wrong lines


Joined: 08 Dec 2008
Posts: 35
Reply with quote
(This appears to have started recently)

I need to add some functionality to a web site that is hosted on a BSD server, so I copied the entire site to my local machine. Since the content was initially developed by me on THIS machine, I did not expect any issues, but...

When running the debugger and stepping through the code, the DBG will stop at strange lines (comments or white space lines) and will skip entire chunks of code. I do not think that this is an uncommon scenario but I was not able to find any useful info when doing a forum search.

Here are some more details to ponder:
Using PHP 5.0-5.2
Host BSD
Debugging on WINTEL system (XP)
PhpEd version 5.9.21

Here is first break point

Next step (F7), comment line

Next step(F7), comment line

Next step(F7), missed whole chunk of code


Any help ia appreciated.
View user's profileFind all posts by radi8Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
It looks like your file got an extra 0xD character at the line end. It would explain why PhpED and PHP calculated the line numbers differently.
I'd recommend you to check line endings with any hex editors. You'd see either 0x0A followed by 0x0D, or just singlye 0x0A and at the all line ends. IF you see something like 0x0A, 0x0D, 0x0D, this is not correct and you have to fix it.
(btw many old FTP servers corrupt the files this way if ASCII transfer mode is used. I'd highly recommend to use BINARY transfer for ALL the files)

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Debugging local: DBG steps into wrong lines
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