Hi,
I'm looking for a way to catch js errors on my background page. For starters I would like to print in the console my message every time there is an error with my bg script.
I'm playing a little with window.onerror, tried this:
window.onerror = function(message, url, lineNumber) {
console.log(message + ' - ' + url + ' - ' + lineNumber);
However, some errors still show without being printed...
Any idea why? And what is the best solution for catching those errors?
Thanks