dimanche 22 avril 2018

VS Code breakpoints jump to other lines

as I haven't solved my other issue yet Randomly failing tests jest and supertest Node.js I've decided to use VS code debugger. I thought that it would be pretty simple but after I've set a breakpoint at the certain line and run the debugger I find my breakpoint icon in different place and my code stops there.

My launch.json file:

      {
        "type": "node",
        "request": "launch",
        "name": "Jest Current File",
        "program": "${workspaceFolder}/node_modules/jest/bin/jest",
        "args": ["${relativeFile}"]
      }

Before: enter image description here

After: enter image description here

Any idea why this happens?

Aucun commentaire:

Enregistrer un commentaire