-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Debugger stops at at end of file when "stepping into" #5569
Comments
Thanks for the reproduction. It looks like this is due to how Vite SSR transforms imports/exports internally. Vite replaces each named export with a getter of magic variable I'm not sure if there's a solution to this, but probably this issue is reproducible on plain Vite SSR, so actions need to be taken there. Btw, you are using vscode debugger directly with own |
This is very likely related to how Vite SSR transform modifies the variables: https://github.com/ariperkkio/vite-ssr-transform-sourcemaps-issue/ |
Upstream issue open vitejs/vite#18325 |
Thanks for following up! |
Describe the bug
I'm trying to debug tests in Visual Studio Code. I followed this guide: https://vitest.dev/guide/debugging.html to set up the vscode debugger and everything works fine, until I "step into" a function or method. The debugger does not stop on the correct line, but at the end of the file. I created a minimal repo to reproduce the issue: https://github.com/oliverschwendener/vitest-vscode-debugging-issue. Does anyone have an idea what could cause this issue? Did I misconfigure something?
Reproduction
https://github.com/oliverschwendener/vitest-vscode-debugging-issue
Output
Version
v0.8.4
Validations
The text was updated successfully, but these errors were encountered: