Created
March 6, 2020 12:36
-
-
Save isaldin/43075b30c02ff16af573e15d68785ebe to your computer and use it in GitHub Desktop.
vscode: debug ts project with nvm
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
{ | |
"name": "<name>", | |
"type": "node", | |
"request": "launch", | |
"runtimeExecutable": "${env:HOME}/.nvm/versions/node/v11.15.0/bin/node", // path to node | |
"args": [ | |
"-r", | |
"ts-node/register", | |
"${workspaceRoot}/src/index.ts" // path to start file | |
], | |
"protocol": "inspector", | |
"internalConsoleOptions": "openOnSessionStart", | |
"env": { | |
"TS_NODE_IGNORE": "false", | |
"TS_NODE_PROJECT": "${workspaceRoot}/tsconfig.json" // path to config | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment