title: Node Js Debugger address already in use
body: <p>I'm a beginner in learning Node Js and I'm trying to debug but I'm getting this error:</p>
  
  <pre><code>Waiting for the dError: listen EADDRINUSE: address already in use :::3000
      at Server.setupListenHandle [as _listen2] (net.js:1300:14)
      at listenInCluster (net.js:1348:12)
      at Server.listen (net.js:1436:7)
      at Function.listen (c:\Users\Hp\Desktop\Node\online-shop\node_modules\express\lib\application.js:618:24)
      at Object.&lt;anonymous&gt; (c:\Users\Hp\Desktop\Node\online-shop\app.js:26:5)
      at Module._compile (internal/modules/cjs/loader.js:953:14)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
   at Module.load (internal/modules/cjs/loader.js:812:32)
      at Function.Module._load (internal/modules/cjs/loader.js:724:14)
      at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
  Emitted 'error' event on Server instance at:
      at emitErrorNT (net.js:1327:8)
      at processTicksAndRejections (internal/process/task_queues.js:80:21)
  ebugger to disconnect...
  </code></pre>
  
  <p>I've tried PORT 3001 and others but I'm still getting the same error</p>
  
  <p>Here's my launch.json file:</p>
  
  <pre><code>{
    "version": "0.2.0",
    "configurations": [
      {
        "type": "node",
        "request": "launch",
        "name": "Launch Program",
        "skipFiles": ["&lt;node_internals&gt;/**"],
        "program": "${workspaceFolder}\\app.js"
      }
    ]
  }
  </code></pre>
  
  <p>Here's my app.js file</p>
  
  <pre><code>const PORT = process.env.PORT || 3000;
  app.listen(PORT, () =&gt; console.log(`server started on port ${PORT}`));
  </code></pre>