RBCodeCraft / vscode-ts-node-debugging

Debugging Typescript in VS Code without compiling
174 stars 91 forks source link

Are you sure it works?? #10

Open riskgod opened 6 years ago

dupski commented 6 years ago

It certainly worked 12 months ago (as per the date of the article and last commit). However there's a good chance the information is now out of date given how fast things are changing in JS land!

Unfortunately I don't use the debugger these days so haven't tested with the latest version of VS Code

riskgod commented 6 years ago

{ "version": "0.2.0", "configurations": [

    {
        "type": "node",
        "request": "launch",
        "name": "Debug TypeScript in Node.js",
        "preLaunchTask": "typescript",
        "program": "${workspaceFolder}/src/main.ts",
        "cwd": "${workspaceFolder}",
        "protocol": "inspector",
        "outFiles": [
            "${workspaceFolder}/dist/**/*.js"
        ]
    }
]

}

this one works~

omidkrad commented 5 years ago

For some reason debugging ts-node in vscode is not working anymore. vscode 1.31.0 ts-node v4.1.0 node v10.14.1 typescript v3.1.6

millsp commented 5 years ago

It works partially for me. It breaks (sometimes) when I put a breakline and run from another file.

TriStarGod commented 4 years ago

@dupski What do you use instead of the debugger?