Continuing Execution

See Also1DFXD82

As you run your application141RJVK, it may halt for one of the following reasons:

         An untrapped run-time error occurs.

         Visual Basic encounters a breakpoint1YXJ0G5 you set previously.

         Visual Basic encounters a watch expression12QVKFC that you have set to break if its value changes or becomes true.

         Visual Basic encounters a Stop4K739NO statement or an EndLANEND statement in your code.

         You halt execution manually at a given point.


To continue execution when your application has halted (in all cases except after an End statement)

         From the Run menu, choose Continue (F5), or use the toolbar shortcut:


         From the Debug menu, choose Single Step (F8) or Procedure Step (Shift +F8).


Note   While in break mode, the edits you make to your code may cause syntax errors or other compile errors.  Visual Basic evaluates each new line of code before making the change and alerts you about errors in your code.  If you make a change that prevents execution from continuing, Visual Basic displays an alert with the option of canceling the change or of proceeding.  If you cancel the change, Visual Basic reverses the change by either deleting the incorrect line of new code or restoring the previous state of an old line of code.  If you choose to proceed, Visual Basic ends execution and returns to design modeCFSL0V.

You may want to change the sequence of your code with the Set Next Statement command (Debug Menu) to either rerun the changed statement or to bypass it.


See Also


Debugging Checklist4RVH0A6

Ending Execution4KTFWY

Executing a Specific StatementECF90T

Restarting ExecutionF5EDVC

Starting Execution1AHX1VG


Programmer's Guide:

Chapter 9, "Debugging"