Answer the question
In order to leave comments, you need to log in
How to debug ts files in VSCODE (Node)?
Now this is the debugger config (it is not working for TS, as you can see for node):
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\build\\index.ts",
"outFiles": ["${workspaceFolder}\\build\\index.js"]
}
]
}
Answer the question
In order to leave comments, you need to log in
Konstantin , yes, there are plenty of manuals.
Starting from the official https://code.visualstudio.com/docs/typescript/type...
To custom https://medium.com/@PhilippKief/how-to-debug-types...
In general, there is one thing. It is necessary to compile first, then run the debug. The main thing is that "sourceMap": true should be.
And you can immediately debug using ts-node
https://gist.github.com/cecilemuller/2963155d0f249...
https://medium.com/@dupski/debug-typescript-in-vs-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question