In Firefox, console.log is not showing anything

I'm trying a simple console.log function in Firefox:

console.log("Hello, World!");

You may try it on: http://jsfiddle.net/EkZjK/

You may also try the full code in a stand-alone HTML file:

<html>
    <head>
        <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
        <script type="text/javascript">
            console.log("Hello World !");
        </script>
    </head>
</html>

I get console logs in Chrome. But in Firefox I cannot see the logs.

I tried the Firebug console and Ctrl + Shift + J. Both don't show the log message in Firefox.

PS: I restarted Firefox, restarted Windows, tried on another machine, deleted the Firefox profile and created another one, and reinstalled Firefox. But the problem still exists.

How can I solve this?


Solution 1:

For some previous versions of Firefox

I had the same problem with a different root cause.

Hit Ctrl + Shift + K to open the full console. In the second row from the top there are tabs - Net, CSS, JS, Security, Logging, and Server. Hit the triangle to the right of "Logging" to open the dropdown and make sure that at least "log" is on.

Enter image description here

Solution 2:

Reinstalling the Firebug plugin solved the issue. Now it appears in the Firebug console (not in Ctrl + Shift + J).

Solution 3:

For Firefox 77.0.1 and Ubuntu 18.04 (Bionic Beaver) LTS (Bionic Beaver):

I had the same problem.

Open the Firefox console - Ctrl + Shift + J.

In the browser console, click on the top right settings icon. In the dropdown, click on Show Content Messages.

Then console.log messages will start showing up in the console.