Skip to content

Instantly share code, notes, and snippets.

@crashmax-dev
Last active November 28, 2021 10:25
Show Gist options
  • Save crashmax-dev/36a496ff6c535bcf82d702d0c94301f4 to your computer and use it in GitHub Desktop.
Save crashmax-dev/36a496ff6c535bcf82d702d0c94301f4 to your computer and use it in GitHub Desktop.
VS Code debugging (typescript, nodemon, ts-node)
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Nodemon",
"type": "node",
"request": "attach",
"processId": "${command:PickProcess}",
"restart": true,
"protocol": "inspector"
}
]
}
{
"restartable": "rs",
"ignore": [
".git",
"dist",
".vscode",
"node_modules/**/node_modules"
],
"verbose": true,
"execMap": {
"ts": "node --require ts-node/register"
},
"watch": [
"src"
],
"ext": "ts"
}
{
"scripts": {
"dev": "nodemon src/index.ts",
"dev:debug": "nodemon --inspect src/index.ts"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment