Last active
May 20, 2018 11:36
-
-
Save rasor/6eb9293a025ae919d66a31a8f8bdcb3d to your computer and use it in GitHub Desktop.
VSCode - Attach to NodeMon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this launch.json in project https://github.com/DivanteLtd/vue-storefront-api to be able to debug it from VSCode