NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] position of "debug" cursor is not accur


Joined: 25 Mar 2008
Posts: 1
Reply with quote
i debug my project, I start on starting script and when i call other function from other script, I appear with the debug cursor on the bad line, thus so line where is not expected php source code.
View user's profileFind all posts by xstifSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
This is not a problem of PhpED or debugger.

It may happen for various undepended reasons. Among them:

a) you debug on remote site and your local copy is not in-sync with remote one. IDE shows local copy.
b) you have HEREDOC constructs in your script. Php has known bugs that lead to incorrect line numbering.
c) your file has 0xD (Mac style) of line endings. It's not supported by PHP.

To check b) and c) you can easily call trigger_error() somewhere in your file and compare actual line number where you added the call with reported one.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] position of "debug" cursor is not accur
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