Errors in content script are not visible in console
Categories
(DevTools :: Console, defect, P3)
Tracking
(Not tracked)
People
(Reporter: juraj.masiar, Unassigned)
Details
Attachments
(1 file)
8.46 KB,
application/x-zip-compressed
|
Details |
Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Reporter | ||
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
I also keep running into this which makes debugging webextensions extremely difficult as sometimes they simply fail without errors and it takes a long time to figure out why.
As others have noted, wrapping the specific cases in a catch block does work, but considering that similar code in the regular context does output errors to the console that shouldn't be needed.
(In reply to creesch.r from comment #7)
I also keep running into this which makes debugging webextensions extremely difficult as sometimes they simply fail without errors and it takes a long time to figure out why.
As others have noted, wrapping the specific cases in a catch block does work, but considering that similar code in the regular context does output errors to the console that shouldn't be needed.
Would just like to echo this. I prefer using firefox for creating web extensions because of how easy it easy to make edits and have the extension automatically reload with npm scrips but this bug is making me slowly go insane because every so often I forget that errors are completely silent and end up placing millions of console.log()s all over my content script only to - hours later - find that I forgot to declare a single variable. I can't imagine how confusing this must be to someone building a web extension for the first time.
Updated•5 years ago
|
Updated•2 months ago
|
Description
•