Debugging angular 4 Jasmin/Karma tests with Visual Studio Code
![Bild](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGXx_Eg_P8HAdhmk6H77GLLRfqsYTgjFiobqQUK304_Rcl3M3BXnnZk3DGAdKpWP0xL4D2voeWwt2fYJPXfNAqIWnq0cwKxrZ3GweZ_M9KSdlpFk5IU6N6VKxM4fQx9mPsyv9QQw/s640/2017-06-05+21_00_25-work-week.ts+-+totask3.bare+-+Visual+Studio+Code.png)
remember how to debug with visual studio code an angular cli generated jasmin test. Change the config: add to visual studio code launch.config ... { "type" : "chrome" , "request" : "attach" , "name" : "Attach to karma test runner" , "sourceMaps" : true , "port" : 9333 , "webRoot" : "${workspaceRoot}" , "sourceMapPathOverrides" : { "webpack:///*" : "${workspaceRoot}/*" } }, add to karma conf.js ... singleRun: false , browsers: [ 'ChromeDebugging' ], customLaunchers: { ChromeDebugging: { base: 'Chrome' , flags: [ '--remote-debugging-port=9333' ] } }, Start the debugging session: ng test set some breakpoints in visual studio code start " Attach to Karma Tests " in Visual Studio Code refre