Hi,
when debugging a VB.NET Application and with help of the Watch1 window
in order to see the values of variables at runtime the value will always
be shown when the pointer is 1 line ahead of the line where this value
should be displayed already.
Here an example:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim BestellGuid As Guid
Dim Telefon as string
Dim Name as string
Tbl_AuftragTableAdapter.FillByAuftragsID(MyDataSet.tbl_Auftrag)
BestellGuid=Tbl_AuftragBindingSource.Item(Tbl_AuftragBindingSource.Position).row("AuftragGuid")
Name=Tbl_AuftragBindingSource.Item(Tbl_AuftragBindingSource.Position).row("Name")
Telefon=Tbl_AuftragBindingSource.Item(Tbl_AuftragBindingSource.Position).row("Telefon")
End Sub
When I have put the "BestellGuid" inside the WATCH1 window then I would
expect that this value will be shown when the debugger pointer went over
the Line with the BestellGuid. But this is not the case. The value will
be shown in the WATCH1 Window after it has passed the "Name" Line.
So the debugger is always 1 line behind the current debugged line.
This is just happening when the Target
CPU is x64. When using the x86 then it is working. Does somebody know the reason?
Cheers,
Maik