Created
December 4, 2017 13:02
-
-
Save aitchkhan/ee48e35ade6952b3d51e61f9028c694a to your computer and use it in GitHub Desktop.
VS-Code configuration for debugging CINC server, scheduler, tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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