Reputation: 8225
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.
Here is the code sample:
Dim decryptEmail As String = DecryptData("[email protected]")
Dim encryptedEmail As String = "[email protected]"
Dim encrpytedPassword As String = "mypassword"
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.
Upvotes: 1
Views: 944
Reputation: 4090
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.
Last but not least, if nothing else helps you could just enter a Stop statement before the line where you want a breakpoint.
Upvotes: 1