NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
lines are not "in-sync"


Joined: 31 Oct 2006
Posts: 9
Reply with quote
Hi, Ive noticed that when im debugging, one of the programs that I go into with the debugger has the little blue dots in the margin not lining up with the code. They are out ou step by about 5 lines. The blue dots actually start on a comment. What is happening here? Have I not done something that I should have? The offending program is an inculde file of another program. Any advice would be good.

My tech details:-
Windows XP Pro
PHPEd 4.6.2 build 4630
PHP 5.1.2
Apache 2.0.55
PHP Debugger 3.1.6
MySQL 4.1.7
View user's profileFind all posts by englishchrissySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
If you run debugger remotely, make sure that remote file which is actually debugged is in sync with local copy you see in the Workspace.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Blue dots still not lining up with code


Joined: 31 Oct 2006
Posts: 9
Reply with quote
Hi, im trying to debug on localhost so I cant see how the programs are out of step. Maybe I'm doing something else wrong but I dont know what it is.
View user's profileFind all posts by englishchrissySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Would be fine if you submit your script.
Or screenshot that will show the first location that is not "synched"

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Problem solved


Joined: 31 Oct 2006
Posts: 9
Reply with quote
Hi, this problem is now solved, many to thanks Dmitri.

I develop locally on windows and live in on linux.

All that was required:-

from the menu Tools/Settings then click on IDE Settings then change Default File Format to Unix. (I had it set to automatic)

Job done.
View user's profileFind all posts by englishchrissySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
per our conversation by email,
we found out that the "troubling" php files were with Mac style line endings (0xD).
It's not supported by php and should be changed to either Unix or Windows (0xA or 0xD,0xA respectively).

You may want to submit bug report on bugs.php.net site
with a simple script that have an error somewhere say on 10th line and 0xD line endings will cause php to show error on any line but 10 Smile

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
lines are not "in-sync"
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