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

**URL:** https://meta.discourse.org/t/how-to-debug-compiler-said-referenceerror-console-is-not-defined/207317
**Category:** Development
**Created:** [October 27, 2021, 11:59pm UTC](https://meta.discourse.org/t/how-to-debug-compiler-said-referenceerror-console-is-not-defined/207317 "2021-10-27T23:59:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 27, 2021, 11:59pm UTC](https://meta.discourse.org/t/how-to-debug-compiler-said-referenceerror-console-is-not-defined/207317/1 "2021-10-27T23:59:40Z")

</div>

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`?

> **[Stop Console.Logging! This is How to Use Chrome to Debug JavaScript](https://dev.to/songthamtung/stop-console-logging-this-is-how-to-use-chrome-to-debug-javascript-48nm)**
>
> If you console.log() when you debug, you’re doing it wrong. There’s an easier way and it’s right in t...

EDIT: So apparently, I have to do this:

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

```
