Skip to content

fix(config): make debugger work with bundle loader #20573

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sapphi-red
Copy link
Member

Description

It seems sourceRoot: path.dirname(fileName) + path.sep, now doesn't work with VSCode's debugger. Since not supporting the file URLs are a bugs on the sourcemap consumer side, I switched to use the file URL.

I confirmed that the settings added in #19631 now works and node --enable-source-maps still works.
On the other hand, the stacktrace is now broken when used with source-map-support or @cspotcode/source-map-support. This is a bug on these packages side.

fixes #20177
refs #18833

@sapphi-red sapphi-red added p3-minor-bug An edge case that only affects very specific usage (priority) feat: sourcemap Sourcemap support labels Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: sourcemap Sourcemap support p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't debug vite.config.ts unless pre-set a breakpoint at dep-DBxKXgDP.js in VSCode.
3 participants