web-ext icon indicating copy to clipboard operation
web-ext copied to clipboard

Show only console log errors for the running extension

Open kumar303 opened this issue 8 years ago • 4 comments

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.

kumar303 avatar Apr 28 '16 15:04 kumar303

Hi @kumar303, "When using the run command, you see all Firefox errors...." are you talking about the log errors in browser console?

aniketkudale avatar Feb 02 '17 18:02 aniketkudale

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.

kumar303 avatar Feb 02 '17 18:02 kumar303

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.

kumar303 avatar Feb 02 '17 18:02 kumar303

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.

Morikko avatar Apr 15 '18 16:04 Morikko