Last active
May 6, 2019 10:52
-
-
Save mjmaix/749de8954c9c6777c08641151ae519b5 to your computer and use it in GitHub Desktop.
Debug TypeScript and TS Mocha files VSCode configuration using TS-Node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Current TS File", | |
"type": "node", | |
"request": "launch", | |
"args": ["${file}"], | |
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"], | |
"sourceMaps": true, | |
"cwd": "${workspaceRoot}", | |
"protocol": "inspector" | |
}, | |
{ | |
"name": "Current TS Mocha File", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/node_modules/.bin/_mocha", | |
"args": ["-r", "ts-node/register", "${file}"], | |
"cwd": "${workspaceRoot}", | |
"protocol": "inspector" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment