From ed558feb7b2f3d9d78a6643d33efa24d6ccafcd7 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Mon, 19 Mar 2018 21:44:23 +0100 Subject: [PATCH] Add debug configuration for VS Code --- .vscode/launch.json | 28 ++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 29 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..852c899 --- /dev/null +++ b/.vscode/launch.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 349eff8..28b3548 100644 --- a/package.json +++ b/package.json @@ -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": "",