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

Change smartStep behavior for Node/Chrome debugging #53414

Closed
roblourens opened this issue Jul 2, 2018 · 2 comments
Closed

Change smartStep behavior for Node/Chrome debugging #53414

roblourens opened this issue Jul 2, 2018 · 2 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality on-testplan release-notes Release notes issues
Milestone

Comments

@roblourens
Copy link
Member

The history of this issue is in microsoft/vscode-chrome-debug-core#245. Filing this in the vscode repo for searchability.

tl;dr...

What

Previously, "smartStep": true would cause the node debugger to not stop in code without sourcemaps. This includes two types of things: files that don't have sourcemaps at all (like code that isn't transpiled or .js files shipped with node modules) and, in transpiled files that do have sourcemaps, individual lines that aren't mapped by the sourcemap (like extra lines that TS inserts when downcompiling some features like async/await).

After 1.26, "smartStep": true will only affect the second type - lines that are missing from a sourcemap. Now you'll be able to step into .js files while still skipping TS async/await code that nobody wants to step through.

Why

We realized that the old smartStep behavior was too aggressive. Skipping the second type of code is usually a no-brainer. But skipping the first only makes sense in some projects or for some users. And the skipFiles option does a better job of covering the case of entire files anyway, since it can target files more precisely and is faster.

What Do I Do

If you are using smartStep and notice that the debugger is no longer auto-skipping through files without sourcemaps, you can use skipFiles to get the previous behavior back. See the docs for examples of how to configure skipFiles to skip code in node_modules, internal node files, or any other files that you don't want to step through.

@roblourens roblourens added feature-request Request for new features or functionality debug Debug viewlet, configurations, breakpoints, adapter issues labels Jul 2, 2018
@roblourens roblourens added this to the July 2018 milestone Jul 2, 2018
@roblourens roblourens self-assigned this Jul 2, 2018
@roblourens roblourens changed the title Change smartStep behavior for Node debugging Change smartStep behavior for Node/Chrome debugging Jul 2, 2018
@roblourens roblourens added the release-notes Release notes issues label Jul 2, 2018
@weinand
Copy link
Contributor

weinand commented Aug 3, 2018

@roblourens
Copy link
Member Author

Thanks!

@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 16, 2018
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 feature-request Request for new features or functionality on-testplan release-notes Release notes issues
Projects
None yet
Development

No branches or pull requests

2 participants