Created
February 6, 2021 14:36
-
-
Save Ash-Kay/b3145ae8b5ef220b6ac3a053bb264b95 to your computer and use it in GitHub Desktop.
VScode launch.json for Typescript
This file contains hidden or 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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug index.ts", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceRoot}", | |
"runtimeArgs": [ | |
"-r", | |
"ts-node/register" | |
], | |
"args": [ | |
"${workspaceRoot}/src/index.ts" | |
], | |
"sourceMaps": true, | |
"outFiles": [ | |
"${workspaceFolder}/build/**/*.js" | |
], | |
"outputCapture": "std" | |
}, | |
{ | |
"name": "Debug Mocha Tests", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceRoot}", | |
"program": "${workspaceRoot}/node_modules/mocha/bin/mocha", | |
"sourceMaps": true, | |
"args": [ | |
"-r", | |
"ts-node/register", | |
"--timeout", | |
"999999", | |
"--colors", | |
"${workspaceRoot}/test/**/*.test.ts", | |
], | |
"outputCapture": "std", | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen", | |
"protocol": "inspector" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment