/ .vscode / launch.json
launch.json
 1  {
 2      // Use IntelliSense to learn about possible attributes.
 3      // Hover to view descriptions of existing attributes.
 4      // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 5      "version": "0.2.0",
 6      "configurations": [
 7          {
 8              "type": "node",
 9              "request": "launch",
10              "name": "Debug via NPM",
11              "runtimeExecutable": "npm",
12              "runtimeArgs": [
13                  "run-script",
14                  "debug"
15              ],
16              "env": {
17                  "WEBHOOK_SECRET": ""
18              },
19              "port": 9229
20          },
21          {
22              "type": "node",
23              "request": "launch",
24              "name": "Launch Program",
25              "program": "${workspaceFolder}/index.js"
26          },
27          {
28              "type": "node",
29              "request": "launch",
30              "name": "Mocha Tests",
31              "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
32              "args": [
33                  "-u",
34                  "tdd",
35                  "--timeout",
36                  "999999",
37                  "--colors",
38                  "${workspaceFolder}/test"
39              ],
40              "internalConsoleOptions": "openOnSessionStart"
41          }
42      ]
43  }