microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.76k stars 29.47k forks source link

Breakpoints move up 10 lines when debugging jest tests #61235

Closed makr28 closed 6 years ago

makr28 commented 6 years ago

Issue Type: Bug

I am working on a Node.js project with Jest unit tests. I am using the launch configuration i've pasted below to run the jest tests. If I put a break point on line 280, when I run the debugger the break point is now on line 270.

This did not happen on the older version of VS Code I had on my previous laptop (a Lenovo Thinkpad w541) And began only once I got a new laptop (Dell precision 5530) and installed the current version of VS Code.

My Launch Configuration { "type": "node", "request": "launch", "name": "Jest Tests (Windows)", "program": "${workspaceRoot}\node_modules\jest\bin\jest.js", "args": ["-i"], "internalConsoleOptions": "openOnSessionStart", "outFiles": ["${workspaceRoot}/dist/*/"] }

VS Code version: Code 1.28.1 (3368db6750222d319c851f6d90eb619d886e08f5, 2018-10-11T18:13:53.910Z) OS version: Windows_NT x64 10.0.17134

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 x 2592)| |GPU Status|2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled| |Memory (System)|31.74GB (17.88GB free)| |Process Argv|--folder-uri file:///c%3A/dev/HTML5/media-viewer-js| |Screen Reader|no| |VM|0%|
Extensions: none
roblourens commented 6 years ago

This is being discussed in https://github.com/facebook/create-react-app/issues/5319