I am seeing some odd behaviour in the VB.Net End If statement when it has a breakpoint set. When the If statement is false the program arrives at the End If breakpoint and will continue after clicking continue. When the If statement is true the program arrives at the breakpoint but it does not continue after pressing continue. You have to press continue a second time. Is this normal? I'm asking the question because I am having trouble debuggging a subroutine and while this is probably my fault the End If behaviour is the only thing I can see at this time that I can't explain. The code below with breakpoints set on the End If's is all that is needed to to test this and it can be placed anywhere. I used two buttons.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If 1 = 0 Then
End If
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
If 1 = 1 Then
End If
End Sub
Aucun commentaire:
Enregistrer un commentaire