title: VS Code “Breakpoint ignored because generated code not found” error for JS code using vscode-chrome-debug
body: <p>On Windows 10 I put together very simple node Express app:</p>
  
  <pre><code>investigate-debugger
  +--.vscode
     +-- launch.json
  +-- app.js
  +-- index.html
  +-- program.js
  </code></pre>
  
  <p>Server started with app.js code:</p>
  
  <pre><code>//////////////////app.js
  var express = require('express');
  var app = express();
  
  app.use(express.static('.'));
  
  app.listen(8080, function () {
    console.log('Example app listening on port 8080!');
  });
  </code></pre>
  
  <p>index.html just loads the program.js file:</p>
  
  <pre><code>//////////////////index.html
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Title of the document&lt;/title&gt;
      &lt;script src="program.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  //////////////////program.js
  var x = 5;
  var y = 4;  // here is  “Breakpoint ignored because generated code not found” 
  console.log(5 + 4);
  </code></pre>
  
  <p>I have configured launch.js in the following way:</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
          {
              "name": "Chrome, launch",
              "type": "chrome",
              "request": "launch",        
              "url": "http://localhost:8080",
              "webRoot": "${workspaceRoot}",
              "diagnosticLogging": false,
              "sourceMaps": false,
              "userDataDir": "${workspaceRoot}/.vscode/chrome"
          }
      ]
  }
  </code></pre>
  
  <p>When I run debugger, I see the output 9 in the debugger console, I see the browser opened in the correct path and yet breakpoint does not work in the program.js, line 2:</p>
  
  <p><a href="https://i.stack.imgur.com/8AlAr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8AlAr.png" alt="enter image description here"></a></p>
  
  <p>What did I wrong here?</p>