Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In firefox, what is the difference between web console and browser console

What is the difference between web console and browser console in firefox 48? They look rather close. Why two consoles?

web console

enter image description here -- best place to run javascript

browser console enter image description here

-- receive error message. -- console.log output

like image 977
historystamp Avatar asked Aug 14 '16 23:08

historystamp


1 Answers

According to Mozilla

The Browser Console is like the Web Console, but applied to the whole browser rather than a single content tab.

So it logs the same sorts of information as the Web Console - network requests, JavaScript, CSS, and security errors and warnings, and messages explicitly logged by JavaScript code. However, rather than logging this information for a single content tab, it logs information for all content tabs, for add-ons, and for the browser's own code.

The Web Console on the other hand:

Logs information associated with a web page: network requests, JavaScript, CSS, security errors and warnings as well as error, warning and informational messages explicitly logged by JavaScript code running in the page context

Enables you to interact with a web page by executing JavaScript expressions in the context of the page

Sources:

Browser Console

Web Console

like image 127
Gerard Santos Avatar answered Nov 10 '22 11:11

Gerard Santos