Skip to content

Instantly share code, notes, and snippets.

@groksrc
Last active February 16, 2016 16:02
Show Gist options
  • Save groksrc/a3ed4d9633f702d81e92 to your computer and use it in GitHub Desktop.
Save groksrc/a3ed4d9633f702d81e92 to your computer and use it in GitHub Desktop.
Configure Visual Studio Code to debug Mocha specs
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/server.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"externalConsole": false,
"sourceMaps": false,
"outDir": null
},
{
"name": "Mocha",
"type": "node",
"request": "launch",
"program": "node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": [
"test/suite.js",
"--colors"
],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"env": {
"NODE_ENV": "development"
}
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"sourceMaps": false,
"outDir": null,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment