File tree 6 files changed +625
-8
lines changed
developer-tools/nodejs-debugging
6 files changed +625
-8
lines changed Original file line number Diff line number Diff line change
1
+ node_modules
2
+ .vscode
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ We've created a simple application which includes an error. You can see the app
23
23
Let's take a look at the ` Dockerfile ` :
24
24
25
25
```
26
- FROM node:5.11.0-slim
26
+ FROM node:8.2.1
27
27
28
28
WORKDIR /code
29
29
@@ -48,7 +48,7 @@ version: "3"
48
48
services:
49
49
web:
50
50
build: .
51
- command: nodemon --debug= 5858
51
+ command: nodemon --inspect=0.0.0.0: 5858
52
52
volumes:
53
53
- .:/code
54
54
ports:
@@ -80,7 +80,7 @@ Attaching to nodeexample_web_1
80
80
web_1 | [nodemon] 1.9.2
81
81
web_1 | [nodemon] to restart at any time, enter `rs`
82
82
web_1 | [nodemon] watching: *.*
83
- web_1 | [nodemon] starting `node --debug= 5858 app.js`
83
+ web_1 | [nodemon] starting `node --inspect=0.0.0.0: 5858 app.js`
84
84
web_1 | Debugger listening on port 5858
85
85
web_1 | HTTP server listening on port 80
86
86
```
@@ -115,8 +115,8 @@ A JSON file will be created and displayed. Replace its contents with the followi
115
115
"address": "localhost",
116
116
"restart": true,
117
117
"sourceMaps": false,
118
- "outDir ": null ,
119
- "localRoot": "${workspaceRoot}",
118
+ "outFiles ": [] ,
119
+ "localRoot": "${workspaceRoot}/app ",
120
120
"remoteRoot": "/code"
121
121
}
122
122
]
Original file line number Diff line number Diff line change 1
- FROM node:5.11.0-slim
1
+ FROM node:8.2.1
2
2
3
3
WORKDIR /code
4
4
Original file line number Diff line number Diff line change 1
1
var express = require ( 'express' ) ;
2
- var expressHandlebars = require ( 'express-handlebars' ) ;
2
+ var expressHandlebars = require ( 'express-handlebars' ) ;
3
3
var http = require ( 'http' ) ;
4
4
5
5
var PORT = 8000 ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: "2"
3
3
services :
4
4
web :
5
5
build : .
6
- command : nodemon --debug =5858
6
+ command : nodemon --inspect =5858
7
7
volumes :
8
8
- .:/code
9
9
ports :
You can’t perform that action at this time.
0 commit comments