Visual Studio “Debug Unit Test” fails to hit breakpoints

前端 未结 11 2050
天涯浪人
天涯浪人 2020-12-17 07:28

When using Visual Studio 2008 and debugging my unit tests... sometimes the debugger works fine. However very often after modifying some code then clicking \"Debug Unit Test\

11条回答
  •  死守一世寂寞
    2020-12-17 08:11

    Make sure you are debugging the correct test!

    I have some tests with very similar names except for the last word in the test name. I had the break point set in the first test and was using Visual Studios "Test Explorer" window to "Debug Selected Tests" on the second test, which didn't have a breakpoint set.

    Test names

    PublishAsync_Valid_Acked
    PublishAsync_Valid_Nacked
    

提交回复
热议问题