-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
help wantedExtra attention is neededExtra attention is neededp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
Source maps in inlined deps are off by a few lines in VS Code debugger
Reproduction
https://github.com/bgoscinski/repro-vitest-sourcemap
pnpm installcode test/the.test.ts- Set breakpoint at line 3 of the test file
- Start debugging session using 'Debug' configuration
- Wait for debugger to attach
- Press 'Step into' until you're in
addfunction implementation - Press 'Step over' and see that debugger highlights invalid line
2024-04-23_21-19-51.mp4
System Info
System:
OS: Windows 11 10.0.22000
CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-1260P
Memory: 19.73 GB / 47.70 GB
Binaries:
Node: 18.16.0 - C:\Program Files\nodejs\node.EXE
npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.15.6 - ~\AppData\Roaming\npm\pnpm.CMD
bun: 1.1.1 - ~\.bun\bin\bun.EXE
Browsers:
Edge: Spartan (44.22000.120.0), Chromium (123.0.2420.97)
npmPackages:
@vitest/ui: latest => 1.5.0
vite: latest => 5.2.10
vitest: latest => 1.5.0Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is neededp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)