我在VS2015中调试我的项目,并在我的代码中抛出异常.当我尝试设置下一个语句时,我收到下面显示的错误消息.当我在VS2013中调试相同的解决方案时,我能够设置下一个语句没有任何问题.这种行为似乎发生在多种异常中.
我可以重现问题的示例代码如下所示.当在最后一行抛出异常时,TestMethod1我可以很容易地回到VS2013中的第一个语句,但不能回到VS2015中.
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
object o = new object();
o = null;
var e = o.ToString();
}
}
Run Code Online (Sandbox Code Playgroud) c# stack-unwinding .net-4.5 visual-studio-2013 visual-studio-2015