在VS 2015上进行单元测试调试时;异常为“无法设置下一条语句".展开调用栈的尝试失败.

编程入门 行业动态 更新时间:2024-10-15 16:26:03
本文介绍了在VS 2015上进行单元测试调试时;异常为“无法设置下一条语句".展开调用栈的尝试失败.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在 VS 2015上进行单元测试的调试时,我们已经将本博客中已经设置的选项的任何想法排除在例外之外: social.msdn.microsoft/Forums/vstudio/zh-CN/c72323de-f551-4800-bbdf-d1f30bb1f8ea/set-next-statement-not-working-in-vs2015-debugger?forum=vsdebug

While debugging on VS 2015 for Unit Test , we are getting below exception any idea we already set the option which had given in this blog: social.msdn.microsoft/Forums/vstudio/en-US/c72323de-f551-4800-bbdf-d1f30bb1f8ea/set-next-statement-not-working-in-vs2015-debugger?forum=vsdebug

---------------------------

---------------------------

Microsoft Visual Studio

Microsoft Visual Studio

---------------------------

---------------------------

无法设置下一条语句.展开调用栈的尝试失败.

Unable to set the next statement. The attempt to unwind the callstack failed.

在以下情况下无法展开:

Unwinding is not possible in the following scenarios:

1.调试是通过即时调试开始的.

1. Debugging was started via Just-In-Time debugging.

2.正在进行放松.

2. An unwind is in progress.

3.已引发System.StackOverflowException或System.Threading.ThreadAbortException异常.

3. A System.StackOverflowException or System.Threading.ThreadAbortException exception has been thrown.

感谢&问候

Varun Kumar

Varun Kumar

推荐答案

嗨Varun库玛,

Hi Varun Kumar,

要真正调试该应用程序,您能给我们分享一个简单的示例吗?请附加您的Visual Studio项目,您可以将其上传到一个驱动器,然后在您的文章中共享下载链接.另请在您的帖子中附上屏幕截图.

To really debug this app, could you share us a simple sample? Please attach your Visual Studio project, you can upload it to the one drive, and then share the download link in your post. Please also attach a screenshot image in your post.

像您提供的线程一样,如果启用所有异常设置,是否可以获取异常?

Like the thread provided by you, could get the Exception if you enable all exception settings?

就像下面的屏幕截图一样,您可以启用Exceptions选项,然后调试您的应用程序,这样它将停止在调试期间抛出Exceptions的代码行中.

Like the following screen shot, you could enable the Exceptions options, and then debug your app, so it would stop in the code line where the Exceptions thrown during debugging time.

因此我们可以知道哪个行代码确实会产生此问题并收集详细的错误消息.

So we could know that which line code really generate this issue and collect the detailed error messages.

最好的问候,

Jack

更多推荐

在VS 2015上进行单元测试调试时;异常为“无法设置下一条语句".展开调用栈的尝试失败.

本文发布于:2023-11-12 19:52:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582377.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:语句   单元测试   异常   下一条   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!