Search code examples
angularjsvisual-studiounit-testingchutzpah

Stepping through angular unit tests in Visual Studios with Chutzpah


I'm new to angular unit testing and chutzpah. I have everything set up (angular libraries, jasmine, sinon, angular-mocks, etc.) and running but I realize as I'm writing my unit tests that debugging them is a pain using chutzpah because I'm not able to attach a debugger (or at least I don't know how) and step through my angular code. Is there a way to achieve this without ditching chutzpah and running the unit tests in the browser using jasmine?


Solution

  • Version 4.1.0 of Chutzpah adds integrated VS debugging. You can set breakpoints in your JS files and launch using the Visual Studio Debugger from the context menu:

    enter image description here