Come fare il debug? `Compiler ha detto: ReferenceError: console non è definito`

I’ve seen on two different sites lately with this error. Now this is on my development site with a plugin that is working in production. . .

Is this what I’m supposed to do instead of console.log?

EDIT: So apparently, I have to do this:

        window.console.log(value, "size");