.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "Tests - Debug Mocha Test",
"type": "node",
// Notice, we bypass the launcher and start the test runner directly
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
// run the tests in the test folder
"args": [
"${workspaceRoot}/test"
],
"cwd": "${workspaceRoot}",
"sourceMaps": true,
"runtimeExecutable": null,
"env": {}
},
{
"request": "attach",
"name": "Attach",
"type": "node",
// Port to attach to.
"port": 5858,
"sourceMaps": true
}
]
}