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

后端 未结 8 676
深忆病人
深忆病人 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:32

    This did the trick for me:
    Ctrl + Alt + E for Exceptions menu -> Press Reset All
    Go to: Tools -> Options -> Debugging -> General: you need to make sure both "Enable Just My Code" and "Enable the exception assistant" are checked.

提交回复
热议问题