Skip to content

Commit 6286b6c

Browse files
committed
Add debug port support for the results (node) app
1 parent 3accda9 commit 6286b6c

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
"name": "Note: Results debugger",
9+
"type": "node",
10+
"request": "attach",
11+
"port": 9229,
12+
"address": "localhost",
13+
"skipFiles": [
14+
"<node_internals>/**"
15+
],
16+
"remoteRoot": "/app",
17+
"localRoot": "${workspaceFolder}/result"
18+
}
19+
]
20+
}

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ services:
2727
result:
2828
build: ./result
2929
# use nodemon rather than node for local dev
30-
entrypoint: nodemon server.js
30+
entrypoint: nodemon --inspect-brk=0.0.0.0 server.js
3131
depends_on:
3232
db:
3333
condition: service_healthy
3434
volumes:
3535
- ./result:/app
3636
ports:
3737
- "5001:80"
38-
- "5858:5858"
38+
- "9229:9229"
3939
networks:
4040
- front-tier
4141
- back-tier

0 commit comments

Comments
 (0)