Skip to content

Instantly share code, notes, and snippets.

@flaudanum
Last active April 24, 2020 15:31
Show Gist options
  • Save flaudanum/c9604e04ebf35311efcb40a1980400b2 to your computer and use it in GitHub Desktop.
Save flaudanum/c9604e04ebf35311efcb40a1980400b2 to your computer and use it in GitHub Desktop.
VS code config: Node.js, debug with auto-restart on code change provided by nodemon, run normal process in parallel
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/app.js",
"restart": true,
// Here module nodemon must be installed globally
"runtimeExecutable": "nodemon",
/* Runs the process "normally" in parallel in a terminal
Beware: the normal and debug processes must be terminated separately */
"console": "integratedTerminal"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment