Skip to content

Instantly share code, notes, and snippets.

@crafter999
Created October 17, 2019 13:41
Show Gist options
  • Save crafter999/20cd6c218892d4e33e173bb6af79920c to your computer and use it in GitHub Desktop.
Save crafter999/20cd6c218892d4e33e173bb6af79920c to your computer and use it in GitHub Desktop.
Debug Node.js + Typescript on VSCODE (linux)
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Node.js",
"program": "${workspaceFolder}/main.ts", // <--- typescript debug file
"outFiles": ["${workspaceFolder}/dist/**/*.js"], // <--- dist js files
"sourceMaps": true,
"port":9229,
"runtimeArgs": ["--inspect-brk=9229"],
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment