It's not unusual for me to stupidly misplace a bracket/brace and cause the entire content script not to load. When this happens there is no error anywhere - the console is empty. This happens with a content.js
direct chrome extension and with crossrider's extension.js
(also in chrome). Being aware of the result, I know something somewhere in my file is wrong but manually looking for it is quite simply a retardedly stupid dumb way of debugging. The only way I've found to narrow down the problem is...
Create a temporary html file, include the content script directly, wait for that sweet line number to be displayed.
Upload the file to crossrider's web interface and let its JS parser show me the line with the error.
The above is slow and cumbersome and needs to be taken out behind the shed with a shotgun.
Where can I go for chrome to tell me 1. there's a problem with the content script and 2. which line or even just which type of bracket I'm missing?