Skip to content
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

Breakpoints move up 10 lines when debugging jest tests #61235

Closed
makr28 opened this issue Oct 18, 2018 · 1 comment
Closed

Breakpoints move up 10 lines when debugging jest tests #61235

makr28 opened this issue Oct 18, 2018 · 1 comment
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues

Comments

@makr28
Copy link

makr28 commented Oct 18, 2018

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 (3368db6, 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
@isidorn isidorn assigned roblourens and weinand and unassigned isidorn Oct 18, 2018
@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Oct 18, 2018
@roblourens
Copy link
Member

This is being discussed in facebook/create-react-app#5319

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

No branches or pull requests

4 participants