Skip to content

Instantly share code, notes, and snippets.

@isaldin
Created March 6, 2020 12:36
Show Gist options
  • Save isaldin/43075b30c02ff16af573e15d68785ebe to your computer and use it in GitHub Desktop.
Save isaldin/43075b30c02ff16af573e15d68785ebe to your computer and use it in GitHub Desktop.
vscode: debug ts project with nvm
{
"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