title: Debug Typescript files in Docker container with VSCode
body: <p>I've been bashing my head over this over a couple hours now and can't seem to find a solution to this anywhere - </p>
  
  <p>I've a simple Node API setup in a Docker container written in Typescript and I'm trying to use VSCode to attach to it to debug. I'm able to connect to it (and the Debug console shows it) but as soon as I try to set a breakpoint I get back <code>Breakpoints set but not yet bound</code>. </p>
  
  <p>Here's my launch.json</p>
  
  <pre><code>{
    "version": "0.2.0",
    "configurations": [
      {
        "name": "Attach to Docker",
        "type": "node",
        "request": "attach",
        "port":9229,
        "restart": true,
        "sourceMaps": false,
        "localRoot": "${workspaceRoot}",
        "remoteRoot": "/api",
        "protocol" : "inspector",
        "trace": "verbose"
      }
    ]
  }
  </code></pre>
  
  <p>Terminal output with debugger</p>
  
  <pre><code>web_1       | Debugger listening on ws://0.0.0.0:9229/44aca479-580c-4ecb-a104-cf80f9041538                                              │
  web_1       | For help, see: https://nodejs.org/en/docs/inspector                                                                       
  web_1       | Debugger attached.
  </code></pre>
  
  <p>The node app gets started up with <code>node --inspect=0.0.0.0:9229</code>. I tried to run some Mocha tests but all the breakpoints I set earlier get completely ignored. Can anyone help me and take a look? Here's my current <a href="https://github.com/andrewgu12/KSA-KExpo/tree/redo-api" rel="nofollow noreferrer">repo</a> but I'll work on setting up a simple TS app in Docker to try and narrow down the possibilities. </p>
  
  <p>Thanks!</p>