The Debug menu provides the options for debugging macros/modules.
Item Description
Step Into Execute the current line. If the current line is a subroutine or function call, stop on the first line of that subroutine or function. (If the macro is not active, start it.)
Hot Key: F8
Step Over Execute to the next line. If the current line is a subroutine or function call, execute that subroutine of function completely.
Hot Key: Shift+F8
Step Out Step out of the current subroutine or function call.
Hot Key: Ctrl+F8
Step to Cursor Execute until the line the cursor is on is the current line. (If the macro is not active, start it.)
Hot Key: F7
Toggle Break Toggle the break point on the current line.
Hot Key: F9
Clear All Breaks Clear all break points.
Hot Key: Shift+Ctrl+F9
Quick Watch Show the value of the expression under of the cursor in the immediate window.
Hot Key: Shift+F9
Add Watch Add the expression under of the cursor in the watch window.
Hot Key: Ctrl+F9
Browse Show the methods of the expression under of the cursor. (see
Object Browser)
Set Next Set the next statement to be executed. Only statements in the current subroutine/function can be selected.
Hot Key: Ctrl+F2
Show Next Show the next statement to be executed.
Hot Key: Ctrl+Shift+F2