Run to Cursor
There is also a command in Visual Basic that lets you run the code to the insertion point, and then enter Break Mode. This is useful for one off stops, instead of always breaking at that point. To run to the cursor point, enter break mode (press Ctrl+Break), insert the cursor where you want it to run to, and click Run To Cursor from the Debug Menu (it is also on the Popup Menu).
Set/Show Next Statement
If you are in break mode and you want to skip a few lines of code (in the same procedure only), you can use the Set Next Statement command. All you need to do is position the cursor to where you want Visual Basic to skip to and press Set Next Statement on the Debug Menu. Alternatively you can drag the yellow arrow to the line you want.
To return to where the yellow line is (the next statement to be executed), press Show Next Statement on the Debug Menu.
Comments