Is it possible to add breakpoints to one's Mocha tests using Visual Studio Code on Windows 7?
I tried to run a test with the following settings. (See here & here for reference.)
{
"name": "Unit tests",
"type": "node",
"program": "node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": ["test/*.js"],
"cwd": ".",
"runtimeExecutable": "C:/Program Files/nodejs/node.exe",
"env": { }
}
// Visual Studio Code 0.3.0
// Windows7(64bit)
// node v0.12.2
// mocha@2.2.5
But following this an error will be displayed:
can't launch program 'c:\Users\xxx\study_mocha\node_modules\mocha\bin_mocha'; enabling source maps might help