Stepping through a program

davele

Member
Joined
Sep 29, 2009
Messages
12
Programming Experience
5-10
I'm trying to step through a program using the "Step Into" and I would like to do the same as F8 in Vb6. Execute the current statement and move to the next instruction.

What seems to happen though, is that the rest of the code is executed. Any ideas?

Thanks
 
I changed the Keyboard to VB6 in Tools > Options with the same result.

He's what happens.

* I put a break point on Line2. The app stops there and so far so good.
* I press F8 or F10 or F11 (tried everything) and the app returns an error on line8 instead of stepping to Line3.

The error is obvious, but I want to step through my program 1 at a time. Driving my crazy :)

1: connData.Open()
2: strSQL = "123"
3: strSQL = "123"
4: strSQL = "select * from cfgTable"
5: strSQL = "123"
6: strSQL = "234"
7: commData = New SqlClient.SqlCommand(strSQL, connData)
8: drData = commData.ExecuteReader()
 
Back
Top