Odoo Help


How to enable the Javascript Web Console for debugging purposes (Firefox)

Leonardo Donelli
on 7/3/14, 9:47 AM 9,894 views

When I try to use console.log in a web addon javascript file, Firefox developer console gives the warning:

The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page.

Where is it disabled, and how can I enable it?

On Chromium it is working.


Leonardo Donelli

--Leonardo Donelli--
| 5 4 8
Roma, Italy
--Leonardo Donelli--

Physics student and part-time developer.

Leonardo Donelli
On 7/3/14, 10:32 AM

According to this stackoverflow answer:

This happens when the page itself defines a global variable called console, for example. If the page is browser-sniffing to decide whether to define it, the behavior could differ in different browsers.

Which is what happens in corestup.js, lines [4,13]:

var console;
if (!console) {
    // Even IE9 only exposes console object if debug window opened
    console = {};
    ('log error debug info warn assert clear dir dirxml trace group'
        + ' groupCollapsed groupEnd time timeEnd profile profileEnd count'
        + ' exception').split(/\s+/).forEach(function(property) {
            console[property] = _.identity;

I've submitted this as an issue: https://github.com/odoo/odoo/issues/903

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/3/14, 9:47 AM
Seen: 9894 times
Last updated: 3/16/15, 8:10 AM