Skip to content

Instantly share code, notes, and snippets.

@gdugas
Last active September 14, 2016 08:47
Show Gist options
  • Save gdugas/f33fa5700a5edb936fbf418e981778ff to your computer and use it in GitHub Desktop.
Save gdugas/f33fa5700a5edb936fbf418e981778ff to your computer and use it in GitHub Desktop.
vscode-node-launcher.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Run current file",
"type": "node",
"request": "launch",
"program": "${file}",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": false,
"outDir": null
},
{
"name": "Run all tests",
"type": "node",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"env": {
"NODE_ENV": "development"
}
},
{
"name": "Run current test file",
"type": "node",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": ["${file}"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"env": {
"NODE_ENV": "development"
}
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"address": "localhost",
"restart": false,
"sourceMaps": false,
"outDir": null,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
},
{
"name": "Attach to process",
"type": "node",
"request": "attach",
"processId": "${command.PickProcess}",
"port": 5858,
"sourceMaps": false,
"outDir": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment