Tutorial by Examples

In the tsconfig.json set "sourceMap": true, to generate mappings alongside with js-files from the TypeScript sources using the tsc command. The launch.json file: { "version": "0.2.0", "configurations": [ { "type"...
Create a Node.js debug configuration and use index.js as Node parameters.
Add ts-node to your TypeScript project: npm i ts-node Add a script to your package.json: "start:debug": "ts-node --inspect=5858 --debug-brk --ignore false index.ts" The launch.json needs to be configured to use the node2 type and start npm running the start:debug script: ...
Add this script to your package.json: "start:idea": "ts-node %NODE_DEBUG_OPTION% --ignore false index.ts", Right click on the script and select Create 'test:idea'... and confirm with 'OK' to create the debug configuration: Start the debugger using this configuration:

Page 1 of 1