mismatched lines for debugging

1 view
Skip to first unread message

rektide

unread,
Dec 26, 2007, 2:40:57 PM12/26/07
to Firebug
i am trying to debug some JS but the lines are mismatched. i have to
look four lines down to figure out what line i am actually on.

interestingly enough venkman's exhibits the same problem.

why is this happening and how can it be prevented?

rektide

rektide

unread,
Dec 26, 2007, 2:43:47 PM12/26/07
to Firebug
further note, i tried 1.1.0b10 and that version of firebug is still
giving me the same misbehavior.

Les

unread,
Dec 26, 2007, 4:38:00 PM12/26/07
to Firebug
I had a similar problem. Are you using JSP's?
Make sure that your JSP's are correctly pre/post processed and that no
empty lines are injected into the JSP.

John J Barton

unread,
Dec 26, 2007, 4:41:22 PM12/26/07
to Firebug
Please provide a test case, perhaps on the issues list:
http://code.google.com/p/fbug/issues/list

rektide

unread,
Dec 27, 2007, 11:39:01 AM12/27/07
to Firebug
It is a JSP and there are empty lines. Will all empty lines cause
problems, or only empty lines in certain places?

rektide

unread,
Dec 27, 2007, 11:39:49 AM12/27/07
to Firebug
I will look into generating a reasonable sized test case. Hopefully I
can make some time for that on the 27th.

John J Barton

unread,
Dec 27, 2007, 3:01:58 PM12/27/07
to Firebug
Adam Gordon found the only cause of line-table drift that is as large
as you report:
http://code.google.com/p/fbug/issues/detail?id=246
This will happen if you have multiple script tags with src attributes
and the tags span more than one line.
All other cases that I know of are off by one errors.

rektide

unread,
Dec 27, 2007, 5:10:52 PM12/27/07
to Firebug
Thank you for the kindly characterization report, it will be immensely
helpful in generating a good bug report. I will patch all multi-line
<script src=""></script>'s and see if we still have any issues.
Reply all
Reply to author
Forward
0 new messages