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,595
  • 2
  • 29
  • 38

1 Answers1

27

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
  • 171,072
  • 38
  • 269
  • 275