Skip to content

Instantly share code, notes, and snippets.

@ff6347
Last active April 3, 2019 10:51
Show Gist options
  • Select an option

  • Save ff6347/ae4d31971f92ef8a6aa6d684c3bbd37a to your computer and use it in GitHub Desktop.

Select an option

Save ff6347/ae4d31971f92ef8a6aa6d684c3bbd37a to your computer and use it in GitHub Desktop.
nodemon and vscode debugger
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Node: Nodemon",
"processId": "${command:PickProcess}",
// "port": 9229,
"restart": true,
"smartStep": true,
"stopOnEntry": true,
"protocol": "inspector",
// "sourceMaps": true,
// "outFiles": ["${workspaceFolder}/dist/**/*.js"],
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"${workspaceFolder}/node_modules/**/*.ts",
"<node_internals>/**/*.js",
"*VM*"
]
},
]
}
{
"ignore": [
"**/*.test.ts",
"**/*.spec.ts",
".git",
"node_modules/**/node_modules",
],
"watch": [
"./"
],
"exec": "node --inspect index.js",
"ext": "js,json",
"restartable": "rs",
"verbose": true,
"env": {
"NODE_ENV": "development",
"NODE_DOCKER_ENV": "0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment