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

Doesn't stop on breakpoints #45448

Closed
manu-st opened this issue Mar 9, 2018 · 10 comments
Closed

Doesn't stop on breakpoints #45448

manu-st opened this issue Mar 9, 2018 · 10 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@manu-st
Copy link

manu-st commented Mar 9, 2018

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
@feafarot
Copy link

I have the same issue using sourcemaps and ts-node

@rcjsuen
Copy link
Contributor

rcjsuen commented Mar 11, 2018

I've been having the same problem with TypeScript Mocha tests on Windows 10. It's very annoying.

@kieferrm kieferrm added the debug Debug viewlet, configurations, breakpoints, adapter issues label Mar 11, 2018
@roblourens
Copy link
Member

Can one of you share your project or some sample code?

Or, please set "trace": true in the launch config, reproduce the issue, and upload the log here.

@roblourens roblourens added the info-needed Issue requires more information from poster label Mar 12, 2018
@s5no5t
Copy link

s5no5t commented Mar 12, 2018

I am having this issue with ts-node as well, not using any source maps on disc. Debugging up to 1.20 was always fine, now breakpoints are never hit.

@roblourens You can find a repro project here

@rcjsuen
Copy link
Contributor

rcjsuen commented Mar 12, 2018

@roblourens I've attached my debugadapter.txt. Hope it helps.

@vscodebot vscodebot bot removed the new release label Mar 13, 2018
humhei added a commit to humhei/ts2fable that referenced this issue Mar 13, 2018
@deepred5
Copy link

@jugglingthebits I meet the problem with ts-node too when updating to 1.21.

@taosdc
Copy link

taosdc commented Mar 15, 2018

add property to launch.json, should fix it.
"outFiles": ["${workspaceFolder}/**/*.js"]

@rcjsuen
Copy link
Contributor

rcjsuen commented Mar 15, 2018

@taosdc I can confirm that that fixed the problem for me. Thank you so much!

@roblourens
Copy link
Member

This is probably #45657 (comment), please see the comment there and try in the next Insiders build.

@roblourens roblourens added *duplicate Issue identified as a duplicate of another issue(s) and removed info-needed Issue requires more information from poster labels Mar 16, 2018
@rceballosdf
Copy link

Hi everybody, Im having the same problem with ts using the VS code from version 1.19 to 1.21.1

@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 30, 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 *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

9 participants