在C#Visual Studio中的一行之后执行前一行 [英] Executing previous line after a line in C# Visual Studio

查看:188
本文介绍了在C#Visual Studio中的一行之后执行前一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我在visual studio中执行我的代码(C#)时,遇到了异常情况。在执行几行之后的方法中,调试器直接执行方法的第一行。并从头开始继续。



没有写入任何递归或任何逻辑来面对这种行为。任何人都可以帮助我摆脱这种情况。

Hi
While I was executing my code(C#) in visual studio, I encountered an abnormal situation. In a method after executing few lines the debugger is straightway executing the first line of the method. and carry on from the starting.

No recursion or any logic is written to face such behavior. Can any one help me out of this situation.

推荐答案

在方法中打开断点并打开线程窗口,

步骤:

在Debug菜单上,指向Windows,然后单击Threads。

check 掌握Visual Studio 2010中的调试 - 初学者指南 [ ^ ]以及如何使用线程窗口..
put break point inside the method and open threads window,
steps:
On the Debug menu, point to Windows, and then click Threads.
check Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[^] and how to use threads window..


这篇关于在C#Visual Studio中的一行之后执行前一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆