How do you debug Jasmine tests with Resharper?

前端 未结 4 1136
野趣味
野趣味 2020-12-23 17:47

I can\'t find a way to debug (walk through) JavaScript code when running Jasmine tests with Resharper in Visual Studio 2012. I tried running tests with browser (Chrome) but

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-23 18:46

    As I posted on Debugging jasmine tests with resharper and phantom js

    I got debugger; to work by setting IE 11 as my test browser in ReSharper options. The cool thing is that you can set your breakpoints in the Visual Studio version of the code and set through and debug using Visual Studio. You really do not need to interact with the browser.

提交回复
热议问题