Open riskgod opened 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~
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
It works partially for me. It breaks (sometimes) when I put a breakline and run from another file.
@dupski What do you use instead of the debugger?
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