title: Node js debugging not working in Visual Studio code (year 2020)
body: <p>I have gone though similar questions and none of the answers help perhaps because the configurations have changed in the latest VS Code or they are not relavant.</p>
  <p>I get this error when I try to launch:</p>
  <pre><code>Exception has occurred: ReferenceError
  ReferenceError: closeDescriptionPopup is not defined
      at HTMLParagraphElement.eval (eval at E (chrome-error://chromewebdata/:14:208), &lt;anonymous&gt;:3:21)
      at w (chrome-error://chromewebdata/:4622:845)
      at L.b (chrome-error://chromewebdata/:4628:231)
      at L.e (chrome-error://chromewebdata/:4627:393)
      at window.jstProcess (chrome-error://chromewebdata/:4630:800)
      at chrome-error://chromewebdata/:4632:56
  </code></pre>
  <p>My <code>launch.json</code> looks like this. Please note that this has become like this due to various trial and errors:</p>
  <pre><code>   {
      &quot;configurations&quot;: [
          {
              &quot;name&quot;: &quot;Launch Chrome&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;type&quot;: &quot;pwa-chrome&quot;,
              &quot;url&quot;: &quot;http://localhost:8080&quot;,
              &quot;webRoot&quot;: &quot;${workspaceFolder}&quot;,
              
          },
          {
              &quot;name&quot;: &quot;Attach by Process ID&quot;,
              &quot;processId&quot;: &quot;${command:PickProcess}&quot;,
              &quot;request&quot;: &quot;attach&quot;,
              &quot;skipFiles&quot;: [
                  &quot;&lt;node_internals&gt;/**&quot;
              ],
              &quot;type&quot;: &quot;pwa-node&quot;
          },
      {
          &quot;name&quot;: &quot;Attach to Chrome&quot;,
          &quot;port&quot;: 9222,
          &quot;request&quot;: &quot;attach&quot;,
          &quot;type&quot;: &quot;pwa-chrome&quot;,
          &quot;webRoot&quot;: &quot;${workspaceFolder}&quot;,
      }
      ]
  }
  </code></pre>
  <p>I have tried various combination of this as well:</p>
  <pre><code> node --inspect-brk  --inspect app.js
  </code></pre>
  <p>Sometimes it gives a message the dubugger is running at <code>ws://somehexadisgits</code> but the break points do not hit.</p>
  <p>P.S This is my vs code version:</p>
  <pre><code> Version: 1.46.1 (user setup)
  Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
  Date: 2020-06-17T21:13:20.174Z
  Electron: 7.3.1
  Chrome: 78.0.3904.130
  Node.js: 12.8.1
  V8: 7.8.279.23-electron.0
  OS: Windows_NT x64 10.0.18363
  </code></pre>