title: Nestjs how to debug while editing code in VS code
body: <p>I see there is a couple of answers making custom setups for debugging a NestJs application. However, I noted that in the standard package.json there is a script available <code>&quot;start:debug&quot;: &quot;nest start --debug --watch&quot;,</code>.</p>
  <p>I tried to create a launch.json with the following setup.</p>
  <pre><code>{
      &quot;type&quot;: &quot;node&quot;,
      &quot;request&quot;: &quot;launch&quot;,
      &quot;name&quot;: &quot;Debug Program&quot;,
      &quot;cwd&quot;: &quot;${workspaceFolder}&quot;,
      &quot;runtimeExecutable&quot;:&quot;npm&quot;,
      &quot;runtimeArgs&quot;:[&quot;run&quot;,&quot;start:debug&quot;],
      &quot;autoAttachChildProcesses&quot;:true
  }
  
  </code></pre>
  <p>This works fine until i start editing the code.
  After that breakpoints are completely ignored, even if I remove and add them again.</p>