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

breakpoints not stoppable with certain libraries bundled #9

Open
joergplewe opened this issue Jun 22, 2023 · 0 comments
Open

breakpoints not stoppable with certain libraries bundled #9

joergplewe opened this issue Jun 22, 2023 · 0 comments

Comments

@joergplewe
Copy link

Dear admired authors,

I ran across a daily-work issue that might or might not be a bug concerning starting the debugger from the plugin. In my case I use to bundle the test using esbuild. In some cases depending on the libs included, the debugger runs the test but won't stop at breakpoints.

I managed to condense that into a minimal example:
node_test_runner_no_breakpoints.zip

Quoting the README:

This works:

  • npm install
  • npm run bundle
  • npm test

There are issues stopping on breakpoints when starting the debugger from the node:test runner plugin.

Debugging using the VSCode debugging feature using launch config unit test always works.

Depending on whether lodash or underscore are included, stopping on breakpoints works or it doesn't.

There are other libraries - when included - prevent the debugger from stopping at breakpoints. We tried rxjs and pixi.js.

For this sample we used lodash and underscore because they are both quite small and very similar.

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