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

cannot set breakpoint when debugging in a node addon project #1951

Open
stimw opened this issue Nov 29, 2024 · 0 comments
Open

cannot set breakpoint when debugging in a node addon project #1951

stimw opened this issue Nov 29, 2024 · 0 comments

Comments

@stimw
Copy link

stimw commented Nov 29, 2024

The reproduction steps are as follows:

  • Use Volta to install the latest version of node@22 or node@20. I only tried these two versions.
  • Run npm install -g node-gyp.
  • Open a project that uses a Node addon, such as https://github.com/yantze/demo-nodejs-addon-debug
  • Run npm run rebuild:dev.
  • Set a breakpoint in src/hello.cc using VSCode, for example, at line 16. Then start debugging and notice that the breakpoint is not hit.

However, this issue does not occur when I use Node installed via NVM. I have no clue why this is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant