Getting back to normal in the Code window

When you finish debugging or just want to start over with a clean slate, do one of the following:

1 To get out of step mode: Press Ctrl+Shift+F8 or choose DebugOStep Out. Code execution will stop, and things will be back to normal.

1 To remove a breakpoint: Right-click the line and choose ToggleO Breakpoint.

1 To clear all breakpoints from your code: Choose DebugOClear All Breakpoints.

1 To clear the Locals window of its value: Right-click any text within the window and choose the Reset option from the shortcut menu.

Closing the VBA editor window also terminates the step mode. For instance, if you choose FileOClose and Return to Microsoft Access while in step mode, you'll see the prompt This command will stop the debugger (see Figure 12-10). This means that if you click OK, the Visual Basic editor will close, all breakpoints will be cleared, step mode will be terminated, and you'll be returned to the Access program window. The next time you open the module, it will be free of breakpoints and in normal mode rather than step mode. (Clicking Cancel closes the dialog box without doing anything to the code. Clicking Help shows some confusing information about the dialog box.)

Figure 12-10:

Exit options when closing in step mode.

Figure 12-10:

Exit options when closing in step mode.

0 0

Post a comment