Add debug configuration for VS Code

This commit is contained in:
Pedro Pombeiro 2018-03-19 21:44:23 +01:00
parent 93c5a1005d
commit ed558feb7b
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
2 changed files with 29 additions and 0 deletions

28
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,28 @@
{
// 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": "launch",
"name": "Debug via NPM",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"debug"
],
"env": {
"WEBHOOK_SECRET": "fa7689e3"
},
"port": 9229
},
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/index.js"
}
]
}

View File

@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"start": "node index.js",
"debug": "node --inspect-brk index.js",
"test": "./node_modules/mocha/bin/mocha"
},
"author": "",