Skip to content

Instantly share code, notes, and snippets.

@aitchkhan
Created December 4, 2017 13:02
Show Gist options
  • Save aitchkhan/ee48e35ade6952b3d51e61f9028c694a to your computer and use it in GitHub Desktop.
Save aitchkhan/ee48e35ade6952b3d51e61f9028c694a to your computer and use it in GitHub Desktop.
VS-Code configuration for debugging CINC server, scheduler, tests
// add this in configuration block
{
"type": "node",
"request": "launch",
"name": "Debug Server",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"debug"
],
"port": 9229
},
{
"type": "node",
"request": "launch",
"name": "Debug Scheduler",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"debug-jobs"
],
"port": 9339
},
{
"name": "Debug tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": ["lib/tests/**/*.js", "--no-timeouts", "--debug", "--colors"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"env": { "NODE_ENV": "local" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment