In pre 0.9.1 versions I had the following configuration and it worked fine, I could set breakpoints in the VSCode and they were hit when tests executed. After the 0.9.1 update the tests are executed however breakpoints are not hit anymore.
It could be awesome if this capability returned again.
As for alternatives, I see that I could switch to using new chrome-debug extension, and run tests in a chrome window, but this is not ideal. Keeping everything in the console output windows makes things clearer.
{
"name": "Run Karma tests",
"type": "node",
"program": "<path>/node_modules/karma/bin/karma",
"args": [
"start",
"<path>/karma.conf.js"
],
"runtimeArgs": [
"--nolazy"
],
"stopOnEntry": false,
"sourceMaps": false
},
module.exports = function(config) {
config.set({
frameworks: ['jasmine'],
files: [...],
preprocessors: {
'src/**/*.jade': 'ng-jade2js',
},
ngHtml2JsPreprocessor: {
stripPrefix: 'src/'
},
ngJade2JsPreprocessor: {
stripPrefix: 'src/',
moduleName: 'templates'
},
exclude: [],
port: 9876,
logLevel: config.LOG_INFO,
autoWatch: true,
reporters: ['mocha', 'junit'],
junitReporter: {
outputDir: 'tmp/test_results',
outputFile: 'webtests.xml',
suite: 'ClientSuccessWebUnitTests',
useBrowserName: false
},
browsers: ['PhantomJS'],
singleRun: false
});
};