0

I have a problem with console.log in regular mode in Google Chrome. The same code logs correctly in Opera and in incognito mode in Chrome. Here I've read recommendations to turn off Firebug extention but I don't have it. Console.log messages not showing up in Chrome's javascript console?

I tried to turn off all extentions and then tested console.log (and alert) again with no success. in incognito mode it works fine, also levels filter is set to All levels (why is it disabled btw?) so nothing is hidden.
the same code

$("#turnOffAll").click(function(){
    var filterId=$('#filterId').val();
    console.log('clicked on filter'+filterId);
});

in regular mode in Chrome outputs nothing.

what can cause this behavior?

Community
  • 1
  • 1
yaufol
  • 3
  • 4
  • Are you sure you don't have a filter turned on in the console to only show certain log levels? That's a really common thing a lot of developers accidentally do. – Jacob Jul 18 '18 at 22:33
  • Possibly relevant (someone that wanted to mute them). Follow the reverse steps if so: https://stackoverflow.com/questions/45737141/mute-scripts-in-chromes-developer-tools-console – Jacob Jul 18 '18 at 22:34
  • I didn't know that output can be filtered like this, thanks. I checked, there is nothing hidden too – yaufol Jul 18 '18 at 22:40

2 Answers2

1

Deleting the cache worked for me. Open 3-dot-menu -> more tools -> delete browser data -> select cache.

Standard
  • 1,450
  • 17
  • 35
0

You may not have enabled a correct level in your console:

Example

Rodrigo Mata
  • 1,779
  • 2
  • 14
  • 23