How to debug? `Compiler said: ReferenceError: console is not defined`

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");