Skip to content

Test: Support skipping code when stepping #4954

Closed
@weinand

Description

@weinand

for #4798:

We added experimental support for automatically skipping 'uninteresting code' when stepping through code in the debugger. 'Uninteresting code' is code that is generated by a transpiling process but is not covered by a source map so it does not map back to the original source. Typically this code gets into your way when stepping through code in the debugger because it makes the debugger switch between the original source code and generated code that you are not really interested in.

This experimental feature automatically steps through code not covered by a source map until it has reached a location that is covered by a source map again. To enable the feature just add the attribute smartStep with a value of true to your launch configuration.

Here is a sample project: async-sample.zip

  • unzip and open in VS Code
  • npm install
  • npm run-script compile

Verify that:

  • stepping through code stays in the source and does not jump into the generated code (you can see the skipped steps in the debug console).
  • stepping still makes sense and you can follow what's going on

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions