Table of contents
TOC
Collapse the table of content
Expand the table of content

Continue Code Execution

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

When you run your code, execution may stop if:

  • An untrapped run-time error occurs.

  • A trapped run-time error occurs, and Break on All Errors is selected on the General tab of the Options dialog box ( Tools menu).

  • A previously set breakpoint is encountered.

  • A Stop statement in your code is encountered, switching the mode tobreak mode.

  • An End statement in your code is encountered, switching the mode todesign time.

  • You halt execution manually at a given point.

  • A watch expression, which you set to break when the value has changed or break when the value is true, is encountered.

To halt execution manually

  1. To switch to break mode, choose Break (CTRL+BREAK) from the Run menu, or use the toolbar shortcut: Toolbar button.

  2. To switch to design time, choose Reset <projectname> from the Run menu, or use the toolbar shortcut: Toolbar button.

To continue execution when your application has halted

  • On the Run menu, click Continue (F5), or use the toolbar shortcut: Toolbar button. - Or -

  • On the Debug menu, click Step Into (F8), Step Over (SHIFT+F8), Step Out (CTRL+SHIFT+F8), or Run To Cursor (CTRL+F8)(.

To continue execution when your application has halted because of a handled error

  • Press ALT+F8 to step through the error-handler. - Or -

  • Press ALT+F5 to resume execution by running through the error-handler.

© 2017 Microsoft