Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature Request: Enable source mapped breakpoints to work by default. #2033

Closed
JustinGrote opened this issue Jan 4, 2024 · 2 comments · Fixed by #2034
Closed

Feature Request: Enable source mapped breakpoints to work by default. #2033

JustinGrote opened this issue Jan 4, 2024 · 2 comments · Fixed by #2034
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@JustinGrote
Copy link

JustinGrote commented Jan 4, 2024

By default, even if source maps are present, TS breakpoints will not be hit if the test runner debug option is used. This should work "out-of-the-box" without configuration.

Workaround

Add the resolveSourceMapLocations manually to your workspace settings.json debugOptions file:

"extension-test-runner.debugOptions": {
  "resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
}

image

@JustinGrote
Copy link
Author

Possible dupe of microsoft/vscode#194964

@connor4312 connor4312 self-assigned this Jul 5, 2024
@connor4312
Copy link
Member

This is because js-debug's outFiles always defaults to looking in the out directory of your workspace. I will make a change in the debugger to guess based on the package.json main entrypoint instead.

@connor4312 connor4312 transferred this issue from microsoft/vscode-extension-test-runner Jul 5, 2024
@connor4312 connor4312 added the bug Issue identified by VS Code Team member as probable bug label Jul 5, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@connor4312 @JustinGrote and others