Possible to make web console messages show in terminal or web element?

  1. How can I make some console.log and error messages automatically sent to Linux terminal?
    I’m wondering if there’s some cli option to let me easily debug a web (particular URL) or a web extension addon (including background, action popup, content script) that I’m developing.

  2. Is it possible to redirect console messages to web element? ( overiding builtin console object ?) .

  1. You can set devtools.console.stdout.content to true in about:config, logs from the page will appear in the terminal.
    If you’re looking into debugging webextension, you can use about:debugging and pick the extension you want to debug.

  2. I don’t think so