7

I just encountered this weird problem. I don't remember I have it before but it has been quite a while since last time I develop any Chrome stuff.

The picture below pretty much speaks it by itself:

enter image description here

Why does Chrome console constantly return undefined for console.log command? Any console.log used in js scripts also return the same.


Update

console.log.toString() returns "function log() { [native code] }"

Anthony
  • 3,194
  • 26
  • 36

1 Answers1

26

Are you filtering the messages by chance? Look in the upper right corner of the console to see if it says “1 hidden”.

Screenshot of devtools, "Hide all / 6 hidden" emphasized

Josh Lee
  • 161,055
  • 37
  • 262
  • 269