Syntax Error at Line 51718725
-
IE has just told me that I have an error in my JS at line 51718725.
This is not helpful. I have hundreds, not millions, of lines of JS, of course.
Anyone have helpful tips and tricks for debugging?
I test in Opera until going to webdialog. (Opera's error console is crabbier than Firefox.) But sooner or later you get to those errors at line 51718725.
-
I get those too. So far all of those errors for me have been because I have sent bad strings into my webdialog. BUT, so far that is about the only thing I have managed to make my webdialog do is accept a string of data. I really have not written any JS beyond simple methods that take the string and write it to the screen somehow. So maybe the bad string thought is not that relevent.
Chris
-
@unknownuser said:
Try one of these "</script>" after lets say every 5 or 6 thousand lines.
I'm self-employed and darn sure my crab apple boss will fire me if I ever get to 5k lines in a JS file.
Advertisement