From 6286b6cf25084aba2b7301f5796dd78540b05d58 Mon Sep 17 00:00:00 2001 From: Michael Irwin Date: Thu, 19 Oct 2023 16:24:56 -0400 Subject: [PATCH] Add debug port support for the results (node) app --- .vscode/launch.json | 20 ++++++++++++++++++++ docker-compose.yml | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..bb9e476 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // 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": [ + { + "name": "Note: Results debugger", + "type": "node", + "request": "attach", + "port": 9229, + "address": "localhost", + "skipFiles": [ + "/**" + ], + "remoteRoot": "/app", + "localRoot": "${workspaceFolder}/result" + } + ] +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 7c2577a..d48b348 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: result: build: ./result # use nodemon rather than node for local dev - entrypoint: nodemon server.js + entrypoint: nodemon --inspect-brk=0.0.0.0 server.js depends_on: db: condition: service_healthy @@ -35,7 +35,7 @@ services: - ./result:/app ports: - "5001:80" - - "5858:5858" + - "9229:9229" networks: - front-tier - back-tier