web-ext
web-ext copied to clipboard
Show only console log errors for the running extension
When using the run
command, you see all Firefox errors. We should only show errors related to the running extension (including background scripts, content scripts, etc). We should be able to do this by hooking into the remote console actor and filtering the output.
Hi @kumar303, "When using the run command, you see all Firefox errors...." are you talking about the log errors in browser console?
I was talking about web-ext run --verbose
which shows all Firefox errors. It should only show errors related to the extension you are running. Working on this feature might be a little tricky though. I think there is a way to do it by connecting to the remote console actor, @rpl has a lot of knowledge (and maybe some code examples) for how to do this.
It's also possible that using the extension debugger would be better than this (because I think the debugger can show only errors related to the extension?). Maybe we need to just add an option to run
that automatically opens the debugger?
To be clear: this is an important feature. It's really annoying to look at the Browser Console and try to ignore all the errors caused by other websites.
Maybe we need to just add an option to run that automatically opens the debugger?
Yes, I like this idea. Browser Console is polluted by too many other messages.