Skip to content

Instantly share code, notes, and snippets.

@Ash-Kay
Created February 6, 2021 14:36
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 Ash-Kay/b3145ae8b5ef220b6ac3a053bb264b95 to your computer and use it in GitHub Desktop.
Save Ash-Kay/b3145ae8b5ef220b6ac3a053bb264b95 to your computer and use it in GitHub Desktop.
VScode launch.json for Typescript
{
// 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