Skip to content

Commit f10e5d1

Browse files
author
Ben Gowers
committed
added debug support
1 parent 222c787 commit f10e5d1

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.vscode/launch.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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": "Attach",
9+
"port": 9229,
10+
"request": "attach",
11+
"skipFiles": ["<node_internals>/**"],
12+
"type": "node",
13+
"sourceMaps": true,
14+
"outFiles": ["${workspaceFolder}/lib/**/*.js"]
15+
}
16+
]
17+
}

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030
},
3131
"scripts": {
3232
"build": "babel ./src --out-dir lib",
33+
"build-maps": "babel ./src --out-dir lib --source-maps",
3334
"dev": "babel ./src --out-dir lib --watch",
3435
"start": "node ./lib/index.js",
36+
"debug": "node --nolazy --inspect-brk=9229 ./lib/index.js",
3537
"lint": "eslint ./src",
3638
"fix": "yarn lint --fix",
3739
"test": "yarn lint",

0 commit comments

Comments
 (0)