Skip to content

Instantly share code, notes, and snippets.

@jcreamer898
Last active September 20, 2017 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcreamer898/7049b358dcd500370218ea6c0fcfa597 to your computer and use it in GitHub Desktop.
Save jcreamer898/7049b358dcd500370218ea6c0fcfa597 to your computer and use it in GitHub Desktop.
How I use vscode's debugger with our nodejs apps
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Run tests",
"program": "${workspaceRoot}/node_modules/.bin/jest"
},
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/bin/www",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/babel-node",
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development",
"ASSET_HOST": "http://localhost:8081",
"NO_WEBPACK_MIDDLEWARE": "true"
},
"console": "internalConsole",
"sourceMaps": true,
"outFiles": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment