Debug toolbar

Debug toolbar

Contains buttons that are shortcuts to some commonly used menu items frequently used in debugging code.

You can click a toolbar button once to carry out the action represented by that button. If you want to display ToolTips for the toolbar buttons, you can select the Show ToolTips option on the General tab of the Options dialog box.

Button Icon Description
Design Mode Design mode Turns design mode off and on.
Run Sub/UserForm or Run Macro Run sub userform Runs the current procedure if the cursor is in a procedure, runs the UserForm if a UserForm is currently active, or runs a macro if neither the Code window nor a UserForm is active.
Break Break Stops execution of a program while it is running and switches to break mode.
Reset Reset Clears the execution stack and module level variables and resets the project.
Toggle Breakpoint Toggle breakpoint Sets or removes a breakpoint at the current line.
Step Into Step into Executes code one statement at a time.
Step Over Step over Executes code one procedure or statement at a time in the Code window.
Step Out Step out Executes the remaining lines of a procedure in which the current execution point lies.
Locals Window Locals window Displays the Locals window.
Immediate Window Immediate window Displays the Immediate window.
Watch Window Watch window Displays the Watch window.
Quick Watch Quick watch Displays the Quick Watch dialog box with the current value of the selected expression.
Call Stack Call stack Displays the Call Stack dialog box, which lists the currently active procedure calls (procedures in the application that have started but are not completed).

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.