JRS: In article <dk**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com>,
dated Wed, 9 Nov 2005 17:35:17, seen in news:comp.lang.javascript,
Adrian <Ad****@nospamhotmail.com.uk> posted :
I have an HTML page that loads 3 or 4 JS files under some conditions it
gives a script error on line 100 the html is only 10 or so lines long. So
when working out which line is in error do I count each line in each JS file
in order from the point at which they are loaded?
Probably.
You should, of course, be able to test using local files; once you have
counted as well as you can, you can if necessary pin down the line more
exactly by inserting a blank line and seeing whether the error line
number changes.
Another approach would be to take a copy of the page, copy into it the
included files, and debug that. Once the problem is understood, solved,
and tested in that it should be easy enough to fix the echt version.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.