Skip to content

Doesn't stop on breakpoints #45448

@manu-st

Description

@manu-st

Issue Type: Bug

Set a breakpoint and run. It does not stop anymore. I believe 1.20 and earlier worked, but not in 1.21.
This happens when running a test suite via jest is against code using TypeScript (v2.7.2) and using ts-jest (v21.2.4).

We use the following setting to start the app:

{
         "name": "Debug Tests",
         "type": "node",
         "request": "launch",
         "program": "${workspaceRoot}/node_modules/jest-cli/bin/jest.js",
         "stopOnEntry": false,
         "args": ["--runInBand", "--verbose", "--config=${workspaceRoot}/testing/jest.config.js", "Font"],
         "cwd": "${workspaceRoot}",
         "preLaunchTask": null,
         "runtimeExecutable": null,
         "runtimeArgs": [ "--nolazy" ],
         "console": "integratedTerminal",
         "sourceMaps": true,
         "smartStep": true
      },

When it starts it shows the following:

Debugger listening on ws://127.0.0.1:47917/38f2a3d9-1d82-493c-8582-589610f9ee52
For help see https://nodejs.org/en/docs/inspector
Debugger attached.

As soon as I change sourceMaps to false, then it works but it is not perfect as when it stops I do not get the yellow arrow telling me on which breakpoint it actually stopped and the step by step or step into functionality do not work at all or partially.

VS Code version: Code 1.21.0 (9a199d7, 2018-03-07T11:04:09.886Z)
OS version: Windows_NT ia32 10.0.16299

System Info
Item Value

|Process Argv|C:\Program Files (x86)\Microsoft VS Code\Code.exe|
|Screen Reader|no|
|VM|0%|

Extensions: none Reproduces without extensions

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)debugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions