title: Cannot debug nest js application in VSCode
body: <p>I try to debug my nestjs application, I follow this article, <a href="https://javascript.plainenglish.io/debugging-nestjs-in-vscode-d474a088c63b" rel="nofollow noreferrer">https://javascript.plainenglish.io/debugging-nestjs-in-vscode-d474a088c63b</a> but still cannot debug the application</p>
  <p>This is my launch.json</p>
  <pre><code>   {
              &quot;type&quot;: &quot;node&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;name&quot;: &quot;Debug Nest Framework&quot;,
              &quot;args&quot;: [
                  &quot;${workspaceFolder}/api/src/main.ts&quot;
              ],
              &quot;runtimeArgs&quot;: [
                  &quot;--nolazy&quot;,
                  &quot;-r&quot;,
                  &quot;ts-node/register&quot;,
                  &quot;-r&quot;,
                  &quot;tsconfig-paths/register&quot;
              ],
              &quot;sourceMaps&quot;: true,
              &quot;envFile&quot;: &quot;${workspaceFolder}/.env&quot;,
              &quot;cwd&quot;: &quot;${workspaceRoot}/api&quot;,
              &quot;console&quot;: &quot;integratedTerminal&quot;,
              &quot;protocol&quot;: &quot;inspector&quot;
          }
  </code></pre>
  <p>when I debugging the app seems start debugging but after get this error</p>
  <pre><code>return new TSError(diagnosticText, diagnosticCodes)
             ^
  TSError: ⨯ Unable to compile TypeScript:
  src/companies/companies.service.ts:13:49 - error TS2304: Cannot find name 'Company'.
  </code></pre>
  <p><a href="https://i.stack.imgur.com/YYTPq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YYTPq.png" alt="enter image description here" /></a></p>
  <p>How can I debug this app?</p>