Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webstorm debugger ignores breakpoints after hot-swap in nx app #23187

Open
2 of 4 tasks
jahumes opened this issue May 4, 2024 · 0 comments
Open
2 of 4 tasks

Webstorm debugger ignores breakpoints after hot-swap in nx app #23187

jahumes opened this issue May 4, 2024 · 0 comments
Assignees
Labels
scope: node Issues related to Node, Express, NestJS support for Nx type: bug

Comments

@jahumes
Copy link

jahumes commented May 4, 2024

Current Behavior

Breakpoints work for node/express applications just fine on the initial load, but when using an nx mono-repo workspace and after a hot-reload, Webstorm loses track of the breakpoints and no longer stops on the breakpoints. I have tested this with a fresh install of Webstorm and a fresh install of nx. This works just fine with VS Code.

Expected Behavior

Debugger works after a rebuild of the webpack dev-server

GitHub Repo

https://github.com/jahumes/test-nx-webstorm-breakpoints

Steps to Reproduce

  1. Install the attached project or create a new express standalone project with npx create-nx-workspace
  2. Run npm install
  3. Open a project in Webstorm
  4. Add a breakpoint to line 9 of main.ts
  5. Create a new configuration for npm run start
  6. Debug the new configuration
  7. Open the browser to http://localhost:3000
  8. You will see the breakpoint be activated
  9. Continue the debugger until the response is received in the browser
  10. Edit line 9 and change the message string to Hello API 2
  11. The process console will refresh the application
  12. Refresh the browser, and the breakpoint will not be hit. The breakpoint still has the checkmark that signifies the debugger can see it.

Nx Report

NX   Report complete - copy this into the issue template

Node   : 20.11.1
OS     : win32-x64
npm    : 10.2.4

nx (global)        : 18.0.5
nx                 : 18.3.4
@nx/js             : 18.3.4
@nx/jest           : 18.3.4
@nx/linter         : 18.3.4
@nx/eslint         : 18.3.4
@nx/workspace      : 18.3.4
@nx/devkit         : 18.3.4
@nx/esbuild        : 18.3.4
@nx/eslint-plugin  : 18.3.4
@nx/node           : 18.3.4
@nrwl/tao          : 18.3.4
typescript         : 5.4.5
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/jest/plugin

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@FrozenPandaz FrozenPandaz added the scope: node Issues related to Node, Express, NestJS support for Nx label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: node Issues related to Node, Express, NestJS support for Nx type: bug
Projects
None yet
Development

No branches or pull requests

3 participants