Skip to content

Commit d5fc344

Browse files
committed
Added suport for VSCode debugging
1 parent 50e6ea2 commit d5fc344

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ builds
1212
.DS_Store
1313

1414
# Visual Studio
15-
.vs
16-
.vscode
15+
.vs

.vscode/launch.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
"type": "chrome",
9+
"request": "launch",
10+
"name": "Run Server DEV",
11+
"port": 9222,
12+
"url": "http://localhost:9000/",
13+
"webRoot": "${workspaceRoot}",
14+
"sourceMaps": true,
15+
"timeout": 15000,
16+
"trace": "verbose",
17+
"preLaunchTask": "run_server_dev",
18+
},
19+
{
20+
"type": "chrome",
21+
"request": "launch",
22+
"name": "Run Server DIST",
23+
"port": 9222,
24+
"url": "http://localhost:9000/",
25+
"webRoot": "${workspaceRoot}",
26+
"sourceMaps": true,
27+
"timeout": 15000,
28+
"trace": "verbose",
29+
"preLaunchTask": "run_server_dist",
30+
}
31+
]
32+
}

.vscode/tasks.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "server:dev",
9+
"problemMatcher": [],
10+
"label": "(Start) Webpack Dev Server",
11+
"identifier": "run_server_dev",
12+
"promptOnClose": true
13+
},
14+
{
15+
"type": "npm",
16+
"script": "server:dist",
17+
"problemMatcher": [],
18+
"label": "(Start) Webpack Dist Server",
19+
"identifier": "run_server_dist",
20+
"promptOnClose": true
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)