Skip to content

debug code run inside vm doesn't support inline sourcemaps  #34437

@denghongcai

Description

@denghongcai
  • Version: v14.5.0
  • Platform: Darwin Kernel Version 19.5.0
  • Subsystem: vm
  • Chrome Version: 86.0.4207.0

What steps will reproduce the bug?

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?

How often does it reproduce? Is there a required condition?

always

What is the expected behavior?

I expected when debug in devtools, sourcemap will be parsed, displayed correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    inspectorIssues and PRs related to the V8 inspector protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions