Skip to content

Instantly share code, notes, and snippets.

@rasor
Last active May 20, 2018 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasor/6eb9293a025ae919d66a31a8f8bdcb3d to your computer and use it in GitHub Desktop.
Save rasor/6eb9293a025ae919d66a31a8f8bdcb3d to your computer and use it in GitHub Desktop.
VSCode - Attach to NodeMon
{
// Location: /project-root-containing-package-json/.vscode/launch.json
// Use --inspect in your nodemon start . e.g. "nodemon --inspect ./bin/www"
// Info: NodeMon uses port 9229 - you can swap to any other port that fits your needs
//
// More information, visit: https://go.microsoft.com/fwlink/?linkid=830387 and
// https://github.com/Microsoft/vscode-recipes/tree/master/nodemon
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"restart": true,
"protocol": "inspector",
"port": 9229
},
{
"type": "node",
"request": "attach",
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"restart": true,
"protocol": "inspector"
}
]
}
@rasor
Copy link
Author

rasor commented May 20, 2018

I use this launch.json in project https://github.com/DivanteLtd/vue-storefront-api to be able to debug it from VSCode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment