title: Uncaught Exception: ReferenceError: debug is not defined
body: <p>I am creating an Electron app. I have the following code in my <code>main.js</code> file:</p>
  
  <pre><code>if (debug) {
    mainWindow.webContents.openDevTools()
    mainWindow.maximize()
    require('devtron').install()
  }
  </code></pre>
  
  <p>When I run <code>npm run dev</code>, it shows error. Here's my <code>package.json</code> file:</p>
  
  <pre><code>{
  "name": "tiktok",
    "version": "1.0.0",
    "description": "A test app",
    "main": "main.js",
    "scripts": {
      "start": "electron .",
      "dev": "electron . --debug",
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "keywords": [
      "demo"
    ],
    "author": "Md Mazedul Islam Khan",
    "license": "ISC",
    "dependencies": {},
    "devDependencies": {
      "devtron": "^1.3.0",
      "electron": "^1.4.1"
    }
  }
  </code></pre>
  
  <p>Not sure what I am missing here.</p>