Last active
May 23, 2020 02:00
-
-
Save deskoh/003c4f62c5f37a2c6ebec021b41b9c15 to your computer and use it in GitHub Desktop.
VS Code Debug Recipes
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Debug Current Test", | |
| "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | |
| "env": { | |
| "TS_NODE_FILES": "true", | |
| "NODE_ENV": "test" | |
| }, | |
| "args": [ | |
| "-r", | |
| "ts-node/register/transpile-only", | |
| "--timeout", | |
| "999999", | |
| "--colors", | |
| "--exit", | |
| "**/${fileBasename}" | |
| ], | |
| "console": "integratedTerminal" | |
| } | |
| ] | |
| } |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Debug Tests", | |
| "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | |
| "env": { | |
| "TS_NODE_FILES": "true", | |
| "NODE_ENV": "test" | |
| }, | |
| "args": [ | |
| "-r", | |
| "ts-node/register/transpile-only", | |
| "--timeout", | |
| "999999", | |
| "--colors", | |
| "--exit", | |
| "test/**/*.ts" | |
| ], | |
| "console": "integratedTerminal" | |
| } | |
| ] | |
| } |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "TS-Node (Watch)", | |
| "type": "node", | |
| "request": "launch", | |
| "protocol": "inspector", | |
| "cwd": "${workspaceFolder}", | |
| "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ts-node-dev", | |
| "env": { | |
| "TS_NODE_FILES": "true" | |
| }, | |
| "args": [ | |
| "--inspect", | |
| "--no-notify", | |
| "--transpileOnly", | |
| "--respawn", | |
| "${workspaceFolder}/src" | |
| ], | |
| "console": "integratedTerminal", | |
| "restart": true | |
| } | |
| ] | |
| } |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "TS-Node", | |
| "env": { | |
| "NODE_ENV": "development", | |
| "TS_NODE_FILES": "true" | |
| }, | |
| "args": ["${workspaceFolder}\\src\\index.ts"], | |
| "runtimeArgs": ["-r", "ts-node/register/transpile-only"], | |
| "cwd": "${workspaceFolder}", | |
| "internalConsoleOptions": "openOnSessionStart" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment