Debug Toolbar

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Gg251771.dbbrvbe_ZA01201596(en-us,office.14).gif

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. You can select the Show ToolTips option in the General tab of the Options dialog box if you want to display ToolTips for the toolbar buttons.

Toolbar Buttons

Gg251771.tbr_dsgm_ZA01201699(en-us,office.14).gifDesign Mode

Turns design mode off and on.

Gg251771.tbr_strt_ZA01201751(en-us,office.14).gifRun Sub/UserForm or Run Macro

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.

Gg251771.tbr_brk_ZA01201682(en-us,office.14).gifBreak

Stops execution of a program while it is running and switches to break mode.

Gg251771.tbr_end_ZA01201701(en-us,office.14).gifReset

Clears the execution stack and module level variables and resets the project.

Gg251771.tbr_bkpt_ZA01201681(en-us,office.14).gifToggle Breakpoint

Sets or removes a breakpoint at the current line.

Gg251771.tbr_stpi_ZA01201749(en-us,office.14).gifStep Into

Executes code one statement at a time.

Gg251771.tbr_stpo_ZA01201750(en-us,office.14).gifStep Over

Executes code one procedure or statement at a time in the Code window.

Gg251771.tbr_stot_ZA01201748(en-us,office.14).gifStep Out

Executes the remaining lines of a procedure in which the current execution point lies.

Gg251771.tbr_lowd_ZA01201713(en-us,office.14).gifLocals Window

Displays the Locals window.

Gg251771.tbr_imwd_ZA01201710(en-us,office.14).gifImmediate Window

Displays the Immediate window.

Gg251771.tbr_wawd_ZA01201768(en-us,office.14).gifWatch Window

Displays the Watch window.

Gg251771.tbr_qwat_ZA01201733(en-us,office.14).gifQuick Watch

Displays the Quick Watch dialog box with the current value of the selected expression.

Gg251771.tbr_call_ZA01201683(en-us,office.14).gifCall Stack

Displays the Calls dialog box, which lists the currently active procedure calls (procedures in the application that have started but are not completed).