2011-06-25 1:09 said:
In author's testing, it is often sufficient to use the Error Console,
and much simpler than using debuggers.
I'm not sure what you mean by "Error Console", but I would expect it to
fall into the category of debugging and inspecting software. Using IE 9
for example, you just need to press F12 to get to see errors with line
numbers.
Developers are supposed to find out the line numbers. In error reports,
it is far more important to describe what you did and what happened than
to do the developer's work.
You can use try/catch around anything you consider dangerous, and make
it produce a suitable action.
Is this related to the issue of finding line numbers? If you expect
users to tell line numbers in bug reports, I don't see how that assumed
need would vanish if you use try and catch.
I suspect Jukka thinks web users can be divided into two classes -
professional developers, and readers.
There are developers and there are users, but the dichotomy is all yours.
There is a significant
intermediate class of amateur page authors, who write not for money but
because they have something to say. H'mmm - I forgot two other classes;
teachers, and TL.
This is irrelevant to the issue of showing line numbers. If it is
relevant to you to find source line numbers of JavaScript code, you can
find them using debugging and inspecting software.