nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.17k stars 2.3k forks source link

When a nestjs app is hot reloaded, the debugger is no longer connected #18182

Closed brandoncollins7 closed 6 months ago

brandoncollins7 commented 1 year ago

Current Behavior

It seems every time I make a code change and my nestjs app restarts, my breakpoints no longer get hit until I fully restart the app through my intellij debugger.

I'm not sure if this is somehow intellij's fault but I don't have this issue with my other non nestjs projects.

Expected Behavior

Breakpoints should continue to work after hot reload otherwise whats the point

GitHub Repo

No response

Steps to Reproduce

1.

Nx Report

Node   : 18.15.0
   OS     : win32-x64
   pnpm   : 7.32.2

   nx (global)        : 16.1.4
   nx                 : 16.5.2
   @nx/js             : 16.5.2
   @nx/jest           : 16.5.2
   @nx/linter         : 16.5.2
   @nx/workspace      : 16.5.2
   @nx/cypress        : 16.5.2
   @nx/devkit         : 16.5.2
   @nx/esbuild        : 16.5.2
   @nx/eslint-plugin  : 16.5.2
   @nx/nest           : 16.5.2
   @nx/next           : 16.5.2
   @nx/node           : 16.5.2
   @nx/react          : 16.5.2
   @nx/storybook      : 16.5.2
   @nx/vite           : 16.5.2
   @nx/web            : 16.5.2
   @nx/webpack        : 16.5.2
   nx-cloud           : 16.1.0
   typescript         : 5.1.6
   ---------------------------------------
   Community plugins:
   @nx-tools/nx-container : 5.0.2
   @nx-tools/nx-prisma    : 5.0.2

Failure Logs

No response

Operating System

Additional Information

No response

brandoncollins7 commented 1 year ago

Anybody have any idea why this happens? Restarting the app takes so much longer then hot reload so it's very annoying that it makes my debug points useless and I have to rerun the build over and over:(

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

brandoncollins7 commented 6 months ago

Hello??

github-actions[bot] commented 5 months ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.