Error messages missing details

Proposals for new surrogate scripts, updates/bug fixes to existing ones, tips and tricks to work around the lazy web.
Post Reply
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Error messages missing details

Post by barbaz »

I have a file: URL surrogate which is rather massive and is acting up such that it can't be loaded. SyntaxError: missing } after property list
It's too big for me to manually go through and find the error. How can configure NoScript to output line & column where error occurred in file: URL surrogates?
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: Error messages missing details

Post by barbaz »

OK I decided to try somewhat creative as a stopgap measure. Dropped a test.html file containing just a script tag pointing to the script. And found the syntax error (ugh didn't know that can't use .bind() in object initializer get!)

This will allow to make sure it's at least syntactically correct, obviously it won't work fully in that situation and further debugging can be done in the real environment with the usual console.*, alert, etc
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply