Skip to content

Instantly share code, notes, and snippets.

@IslamWahid
Last active April 18, 2018 10:58
Show Gist options
  • Save IslamWahid/0c666a3fd8c3ae6b4e134c811275cbec to your computer and use it in GitHub Desktop.
Save IslamWahid/0c666a3fd8c3ae6b4e134c811275cbec to your computer and use it in GitHub Desktop.
vscode debugging NodeJs launch.json
{
"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