From 787d98c1b9b3069c90183e5f9d168d8f6870355e Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Tue, 10 Apr 2018 01:07:31 +0530 Subject: [PATCH] [misc] debug scripts --- .vscode/launch.json | 15 +++++++++++++-- package.json | 2 ++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8e92380..b6588bd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,10 +5,21 @@ "version": "0.2.0", "configurations": [ { + "name": "Launch Program", "type": "node", "request": "launch", - "name": "Launch Program", - "program": "${workspaceFolder}/Select.js" + "program": "${workspaceFolder}/testscript.js" + }, + { + "name": "Attach To npm", + "type": "node", + "request": "attach", + "port": 5858, + "address": "localhost", + "restart": false, + "sourceMaps": false, + "localRoot": "${workspaceRoot}", + "remoteRoot": null } ] } \ No newline at end of file diff --git a/package.json b/package.json index f376308..82c91fa 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,8 @@ "description": "Return a function based on a condition. Monadic alternative to switch-case.", "main": "Select.js", "scripts": { + "start": "node Select", + "debug": "node --inspect-brk testscript", "test": "npx jasmine" }, "repository": {