Why doesn't Visual Studio break on exceptions when debugging unit tests?

后端 未结 8 682
深忆病人
深忆病人 2020-12-29 02:53

When I attempt to debug a unit test that fails because of an unhandled exception in my code, I expect Visual Studio to break on the unhandled exception so I can inspect the

相关标签:
8条回答
  • 2020-12-29 03:37

    Install Testdriven.NET, and use "Test With -> Debugger".

    0 讨论(0)
  • 2020-12-29 03:40

    For me I am using VS 2010 and 2015, Go to: Tools, Options, Debugging, General: you need to make sure the "Enable Just My Code" and "Enable the exception assistant" should be checked.

    0 讨论(0)
提交回复
热议问题