From 0d25e48cd55b223b01f21256bcb0000f02e474d3 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 23 Sep 2020 00:02:55 +0300 Subject: [PATCH] Add debugger support to watch task 0.0.0.0 used as IP to allow debugging from Windows to WSL2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4c9aa29..f961ef7 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "main": "src/index.js", "scripts": { "start": "node src/index.js", - "watch": "supervisor -n exit -w src src/index.js", + "watch": "supervisor -n exit -w src --inspect=0.0.0.0:9229 src/index.js", "test": "echo \"Error: no test specified\" && exit 1", "lint": "eslint ./src ./db/migrations", "lint-fix": "eslint --fix ./src ./db/migrations",