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

Test: "Just my Code" feature of node and node2 #16208

Closed
3 tasks done
weinand opened this issue Nov 29, 2016 · 1 comment
Closed
3 tasks done

Test: "Just my Code" feature of node and node2 #16208

weinand opened this issue Nov 29, 2016 · 1 comment
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Nov 29, 2016

Test for #3215:

Complexity: 3

The VS Code node debuggers (Node Debug and Node Debug 2) now support a feature similar to Visual Studio's "Just my Code" feature. With this you can easily skip over "uninteresting" code when debugging.
The feature is enabled by specifying the skipped code through a set of glob patterns for a skipFiles attribute. Positive patterns (e.g. foo/**/*.js) add to the set of skipped files, while negative patterns (e.g. !foo/**/bar.js) subtract from that set. In the following "skipped code" means code that is covered by the skipFiles glob patterns.

If skipped code is enabled, debugging is affected in the following way:

  • if you step into skipped code, VS Code will continue to 'step in' until it reaches code that is not skipped.
  • If you have a breakpoint in skipped code, the debugger will still break at that breakpoint and you can step manually inside the skipped code until you 'continue' or step out of it.
  • You won't break on caught exceptions thrown in skipped code.

Verify that:

  • the feature works as described both for debug type nodeand node2
@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item labels Nov 29, 2016
@weinand weinand added this to the November 2016 milestone Nov 29, 2016
@weinand weinand self-assigned this Nov 29, 2016
@weinand weinand changed the title Test: Test: "Just my Code" feature of node and node2 Nov 29, 2016
@roblourens
Copy link
Member

Note that ! patterns aren't implemented in node-debug2. It should print a warning message if you have any present in your launch config.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item
Projects
None yet
Development

No branches or pull requests

5 participants