Odoo Help


This community 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.


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

Leonardo Donelli
on 7/3/14, 9:47 AM 5,556 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
Cave, 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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