From 1d57ac5c63a82eda1001443f02e01c9102864996 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sun, 10 Sep 2023 07:46:00 -0700 Subject: [PATCH] Fix server debugging This broke somewhere along the way, the changes update from the legacy attach method of --inspect-brk to stopOnEntry and also updates for the introduction of .nvmrc. --- .vscode/launch.json | 8 +++----- package.json | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 0eb8eb4e..5dbd01ce 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -59,11 +59,9 @@ "request": "launch", "name": "Demo Server", "runtimeExecutable": "npm", - "runtimeArgs": [ - "run", - "start-debug" - ], - "port": 9229, + "runtimeArgs": ["start"], + "stopOnEntry": true, + "runtimeVersion": "16", "serverReadyAction": { "action": "openExternally", "pattern": "App listening to (http://.*?:[0-9]+)" diff --git a/package.json b/package.json index 534f44ec..23661d73 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "start": "node demo/start", "start-server-only": "node demo/start-server-only", "build-demo": "webpack --config ./demo/webpack.config.js", - "start-debug": "node --inspect-brk demo/start", "lint": "eslint -c .eslintrc.json --max-warnings 0 --ext .ts src/ addons/", "lint-api": "eslint --no-eslintrc -c .eslintrc.json.typings --max-warnings 0 --no-ignore --ext .d.ts typings/", "test": "npm run test-unit",