title: VS Code: "Breakpoint ignored because generated code not found" error
body: <p>I have looked everywhere and I still have issue debugging TypeScript inside VS Code. I have read <a href="https://stackoverflow.com/questions/31169259/how-to-debug-typescript-files-in-visual-studio-code">this</a> thread but still I am not able to hit my breakpoints placed inside a TypeScript file, hitting the breakpoints in .js files all works fine.</p>
  
  <p>So here is the simplest "hello world" project I have set up.</p>
  
  <ul>
  <li><p>app.ts:</p>
  
  <pre><code>var message: string = "Hello World";
  
  console.log(message);
  </code></pre></li>
  <li><p>tsconfig.json</p>
  
  <pre><code>{
      "compilerOptions": {
          "target": "es5",
          "sourceMap": true
      }
  }
  </code></pre></li>
  <li><p>launch.json</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
          {
              "name": "Launch",
              "type": "node",
              "request": "launch",
              "program": "${workspaceRoot}/app.js",
              "stopOnEntry": false,
              "args": [],
              "cwd": "${workspaceRoot}",
              "preLaunchTask": null,
              "runtimeExecutable": null,
              "runtimeArgs": [
                  "--nolazy"
              ],
              "env": {
                  "NODE_ENV": "development"
              },
              "externalConsole": false,
              "sourceMaps": true,
              "outDir": null
          }
      ]
  }
  </code></pre></li>
  </ul>
  
  <p>I have generated the js.map files by running the <code>tsc --sourcemap app.ts</code> command.</p>
  
  <p>After all of those steps when I set a breakpoint on the <code>console.log(message);</code> row and launch the program (F5) from the "Debug" tab that breakpoint is grayed out saying "Breakpoint ignored because generated code not found (source map problem?)." I attached a screenshot of what I am observing: </p>
  
  <p><a href="https://i.stack.imgur.com/dTkNY.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/dTkNY.jpg" alt="enter image description here"></a></p>
  
  <p>What am I missing? </p>
  
  <p>Edit:</p>
  
  <p>Hi, I am still stuck on this. I managed to make one sample project that was hitting the break points but after I tried to copy that project to a different location on my HDD the break points again became gray and were not hit. What I did different in this test project was to use inline sourcemaps by compiling the TypeScript files with <code>tsc app.ts --inlinesourcemap</code></p>
  
  <p>I uploaded the mentioned sample project to GitHub so you can take a look at it <a href="https://github.com/VladimirAmiorkov/TypeScriptVSCodeDebugTest" rel="noreferrer">here</a>.</p>