调试器在vb.net跳过线 [英] debugger in vb.net skips line

查看:238
本文介绍了调试器在vb.net跳过线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个vb.net的项目,我也没有机会在该类型的项目,参加工作至今,因为我使用C#所有的时间只。
我的确在code一些变化,我在一种方法设置断点,我想看看我会从该方法得到的,但我虽然有断点设置,调试器跳过该行并进入到下一行。
我不知道为什么会发生的事情。
这里是code样品:<​​/ P>

I am working on a vb.net project, I didn't had chance to work on that kind of project so far, since I am using C# all the time exclusively. I did some changes in the code and I set a breakpoint at one method, I want to see what I'll get from that method, but although I have breakpoint set, the debugger skips that line and goes to the next line. I don't know why that's happening. Here is the code sample:

  Dim decryptEmail As String = DecryptData("myemail@yahoo.com")
        Dim encryptedEmail As String = "myemail@yahoo.com"
        Dim encrpytedPassword As String = "mypassword"

这是发生在页面加载事件和调试自动跳过第一行,并进入第二行的时候了。
我想知道这是为什么发生的事情,如果有人能帮助我,我会非常感激。
由于提前,Laziale

That's happening on page load event, and the debugged skips the 1st line automatically, and goes to the 2nd line right away. I want to know why is that happening, if anyone can help me I'll be very grateful. Thanks in advance, Laziale

推荐答案

在我的经验中,这些类的东西都可以通过在Visual Studio中的错误造成的。
我通常只是重新生成解决方案。如果没有帮助,我退出并重新启动VS和重新打开解决方案。我甚至不得不再次重启计算机,结束怪异VS行为。

In my experience, these sort of things can be caused by bugs in Visual Studio. I usually just rebuild the solution. If that doesn't help, I exit and restart VS and reopen the solution. I have even had to reboot the computer once to end weird VS behavior.

最后但并非最不重要的,如果没有其他可以帮助你可以只在您想要断点前行进入Stop语句。

Last but not least, if nothing else helps you could just enter a Stop statement before the line where you want a breakpoint.

这篇关于调试器在vb.net跳过线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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