title: VS code debugging of a NestJs dockerized apps inside a monorepo
body: <p>I have been trying to figure out for a while how I would go about setting up a attachment to node debugging processes that are exposed in my environment from multiple running nestjs apps within a mono-repo setup. (With VS code)</p>
  <p><a href="https://github.com/bozvul993/nest-testing-mono-repo-debug" rel="nofollow noreferrer">https://github.com/bozvul993/nest-testing-mono-repo-debug</a></p>
  <p>Ideally i want the debugging sessions restarted on code changes [If this is possible], but more importantly working.</p>
  <p>I have provided a repository with my sample project.
  To run the apps inside <code>/docker</code> folder
  <code>docker-compose -f dev.yml up</code>
  This brings up the three apps in the monorepo. All apps exposed to the host machine their default node debugging ports...</p>
  <p>My vs code launch configuration that i used to attempt this i included:</p>
  <pre><code>            &quot;type&quot;: &quot;node&quot;,
              &quot;request&quot;: &quot;attach&quot;,
              &quot;name&quot;: &quot;Debug App1&quot;,
              &quot;address&quot;: &quot;0.0.0.0&quot;,
              &quot;port&quot;: 9231,
              &quot;localRoot&quot;: &quot;${workspaceFolder}/mono-repo&quot;,
              &quot;remoteRoot&quot;: &quot;/app/mono-repo&quot;,
              &quot;trace&quot;: true,
              &quot;restart&quot;: true,
              &quot;sourceMaps&quot;: true,
              &quot;skipFiles&quot;: [
                  &quot;&lt;node_internals&gt;/**&quot;
              ]
          }
  
  
  With Web-storm this was easier to achieve somehow..
  </code></pre>