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

vm doesn't support inline sourcemaps #17474

Closed
Alphapage opened this issue Dec 5, 2017 · 4 comments
Closed

vm doesn't support inline sourcemaps #17474

Alphapage opened this issue Dec 5, 2017 · 4 comments
Labels
vm Issues and PRs related to the vm subsystem.

Comments

@Alphapage
Copy link

  • Version: all
  • Platform: all
  • Subsystem: all

Hello,

Chrome debugger doesn't support inline sourcemaps for eval since day 0 .
It seems vm behaves the same way because of Chrome debugger missing feature.
Is there a way to workaround the problem by customizing vm in nodejs ?

Thank you in advance for your help.

@devsnek
Copy link
Member

devsnek commented Dec 5, 2017

you should look at #8369

@apapirovski apapirovski added the vm Issues and PRs related to the vm subsystem. label Dec 6, 2017
@bnoordhuis
Copy link
Member

No follow-up by OP. I'll close this out.

@denghongcai
Copy link

denghongcai commented Jul 20, 2020

@bnoordhuis how about reopen this issue?

I get same problem here.

testcase: https://github.com/denghongcai/node-vm-sourcemap-test-case

I insert a debugger statement in src/index.ts 's sayHello method

not working step (use vm):

npm run build
npm run inspect

in devtools, no sourcemap detected
image

working step (no vm):

npm run build
npm test
npm run inspect-index

seems if vm run code with inline sourcemap, it will not be parsed by chrome devtools?

@bnoordhuis
Copy link
Member

@denghongcai Can you open a new issue? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vm Issues and PRs related to the vm subsystem.
Projects
None yet
Development

No branches or pull requests

5 participants