Skip to content

Commit

Permalink
Add a debug configuration for vs code
Browse files Browse the repository at this point in the history
  • Loading branch information
lukePeavey committed Jun 14, 2019
1 parent 6346850 commit 01f3f70
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

.vscode

# dependencies
/node_modules

Expand Down
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Node: Nodemon",
"processId": "${command:PickProcess}",
"restart": true,
"protocol": "inspector"
}
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"scripts": {
"start": "node src/server.js",
"start:dev": "NODE_ENV=development nodemon",
"start:debug": "NODE_ENV=development --inspect nodemon",
"lint": "yarn run eslint . --cache --color && echo \"eslint: no lint errors\""
},
"lint-staged": {
Expand Down

0 comments on commit 01f3f70

Please sign in to comment.