在 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上进行单元测试调试时;异常为“无法设置下一条语句".展开调用栈的尝试失败.
发布评论