Visual Studio “Debug Unit Test” fails to hit breakpoints

前端 未结 11 2059
天涯浪人
天涯浪人 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:15

    Another workaround: Force the debugger to be launched from within your unit test:

    System.Diagnostics.Debugger.Launch();
    

提交回复
热议问题