Skip to content

Instantly share code, notes, and snippets.

@mjmaix
Last active May 6, 2019 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjmaix/749de8954c9c6777c08641151ae519b5 to your computer and use it in GitHub Desktop.
Save mjmaix/749de8954c9c6777c08641151ae519b5 to your computer and use it in GitHub Desktop.
Debug TypeScript and TS Mocha files VSCode configuration using TS-Node
{
"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