0

In a project, console.log is disabled. Firefox tells me it is disabled but I do not now where in the code and I do not want to look.

Is there a way for me to force enable console.log around my code?

Cisum Inas
  • 11,552
  • 11
  • 40
  • 55
  • https://developer.mozilla.org/en/docs/Debugging_JavaScript this might help you – Kalpit Jan 02 '15 at 12:48
  • I didn't know it was possible to disable it, are you using Firebug? you could try searching for console in about:config – Scriptable Jan 02 '15 at 12:48
  • read it maybe: http://stackoverflow.com/questions/21692646/how-does-facebook-disable-the-browsers-integrated-developer-tools – A. Wolff Jan 02 '15 at 12:51

2 Answers2

4

If console.log() is disabled with redefined function like

console.log = function() {}

You can try to delete it and browser will restore the default console.log

delete console.log
Vasil Nikolov
  • 1,112
  • 10
  • 17
1

As far as I know it is not possible to make "Firefox tells me it is disabled".

It is possible that someone replaced native browser "console.log" implementation.

To check what object is being referenced by "console.log" you should simply type it in Firebug console and check out the result.
By default it should print "function()".

Victor Yarema
  • 1,183
  • 13
  • 15
  • I can only guess that there is some problem with some Firefox addon. I recommend you to try and run Firefox with all addons except Firebug disabled. – Victor Yarema Jan 02 '15 at 15:14