Last active
April 18, 2018 10:58
-
-
Save IslamWahid/0c666a3fd8c3ae6b4e134c811275cbec to your computer and use it in GitHub Desktop.
vscode debugging NodeJs launch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "test Program", | |
"port": 5858, | |
"program": "${workspaceRoot}/index.js", | |
"env": { | |
"NODE_ENV": "test" | |
}, | |
"console": "integratedTerminal" | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Node 8 test Program", | |
"port": 5858, | |
"env": { | |
"NODE_ENV": "test" | |
}, | |
"args": ["--inspect-brk=5858", "--nolazy", "index.js"] | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Node launch Program", | |
"port": 5858, | |
"args": ["--inspect-brk=5858", "--nolazy", "index.js"] | |
}, | |
{ | |
"name": "Docker: Attach to Node", | |
"type": "node", | |
"request": "attach", | |
"port": 5859, | |
"address": "localhost", | |
"localRoot": "${workspaceRoot}", | |
"remoteRoot": "/app" | |
}, | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Attach by Process ID", | |
"processId": "${command:PickProcess}", | |
"restart": true | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest All", | |
"program": "${workspaceRoot}/node_modules/jest/bin/jest", | |
"args": ["--runInBand"], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen" | |
}, | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest Current File", | |
"program": "${workspaceRoot}/node_modules/jest/bin/jest", | |
"args": ["${file}"], | |
"console": "integratedTerminal", | |
"internalConsoleOptions": "neverOpen" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment