Skip to content

Step into eval when pauseForSourceMap is true does not pause on next available line #1665

Closed
@c3danielxu

Description

@c3danielxu

Describe the bug
When I into an eval function with pauseForSourceMap as true, the code execution does not pause on the next available line. This is a follow up of #1556 except step over works, but step into does not.

To Reproduce
Steps to reproduce the behavior:

  1. Use default launch configurations and add "pauseForSourceMap": true
  2. Debug and see that step into does not pause on line 9 in the screen recording

Log File
vscode-debugadapter-c0c5bc5a.json.gz

VS Code Version: 1.77.3 and JavaScript nightly debugger as of April 18, 2023

Additional context

f = eval(
`(function (a, b) {
  c = a + b;
  return c;
});
//# sourceURL=foo.js
//# sourceMappingURL=foo.js.map
`);
f(1, 2);
console.log('success');
step.into.eval.mp4

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions