[resolved] Blue dots not on each line of code |
Site Admin
|
In short, line counting/numbering is a permanent problem in php. There are many related reports posted at http://bugs.php.net and they almost all are resolved 'n' closed. But still time after time people report they see lines not in-sinc. You can easily check this yourself by throwing an error on a particular line and compare this physical line number with what php printed in the error message.
What you see a blue-dots are line-info provided by php compiler. It always count them wrong if the file encoding is Mac (0xD as line end mark), it often count them wrong if HEREDOCs are used or if #!/blah/blah/php pseudo-comment is in the first line of the script. Although, I did never face up with any problems caused by short-tags (<?) vs full (<?php) |
||||||||||||
_________________ The PHP IDE team |
Veteran
|
Good tip, thanks! I just had some serious difficulties debugging a script because stepping through it was impossible - the debugger missed quite a lot of executable lines. Now I changed the encoding, and everything is fine. Cheers, Jan |
||||||||||||||
|
RE:this topic |
|
I like this thread. It ought to be made a sticky and a must read to all newbies
|
||||||||||||
|
[resolved] Blue dots not on each line of code |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by