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

can't debug with ts-node #45637

Closed
deepred5 opened this issue Mar 13, 2018 · 5 comments
Closed

can't debug with ts-node #45637

deepred5 opened this issue Mar 13, 2018 · 5 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@deepred5
Copy link

  • VSCode Version: 1.21.0
  • OS Version: win10
    Today I update the vscode, then I found the debug can't work with ts-node

launch.json

{
   
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "启动程序",
            "program": "${workspaceFolder}/start.js"
        }
    ]
}

start.js

require("ts-node/register");
require("./1.ts");

1.ts

var a = 1;
var b = 1;
console.log(a);

I can't debug in the 1.ts now.

@deepred5
Copy link
Author

VSCode Version: 1.20.0 is ok , just the 1.21.0 doest't work well

@isidorn isidorn assigned roblourens and weinand and unassigned isidorn Mar 13, 2018
@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Mar 13, 2018
@weinand weinand removed their assignment Mar 13, 2018
@weinand
Copy link
Contributor

weinand commented Mar 13, 2018

What version of node.js are you using?

@weinand weinand added the info-needed Issue requires more information from poster label Mar 13, 2018
@deepred5
Copy link
Author

@weinand 8.9.3

@deepred5
Copy link
Author

I can't add breakpoint, but add debugger can works

@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
@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

4 participants