Udostępnij za pośrednictwem


Debug Shortcut Keys, Visual C++ 2.0 Default Shortcut Option

Use the following shortcut key combinations while debugging your code.

Note

The appearance of features in the IDE can depend on your active settings or edition, and might differ from those described in Help. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

Command name

Shortcut keys

Description

Debug.ApplyCodeChanges

ALT + F10

Apply changes made to code without stopping debug mode.

Debug.Breakpoints

CTRL + B

Displays the Breakpoints window. See Using Breakpoints and Tracepoints for more information.

Debug.CallStack

ALT + 6 CTRL + K

Displays the Call Stack window to display a list of all active procedures or stack frames for the current thread of execution. Available only in run mode. See How to: Use the Call Stack Window for more information.

Debug.Disassembly

ALT + 7

Displays the Disassembly window. See How to: Use the Disassembly Window for more information.

Debug.EnableBreakpoint

CTRL + SHIFT + F9

Enables breakpoint at the current line.

Debug.Locals

ALT + 3

Displays the Locals window to view the variables and their values for each procedure in the current stack frame.

Debug.Memory1

ALT + 5

Displays the Memory 1 window to view large buffers, strings, and other data that do not display clearly in the Watch or Variables window.

Debug.QuickWatch

SHIFT + F9

Displays the QuickWatch dialog box with the current value of the selected expression. Available only in break mode. Use this command to check the current value of a variable, property, or other expression for which you have not defined a watch expression.

Debug.Registers

ALT + 4

Displays the Registers window, which displays registers content for debugging native-code applications. See How to: Use the Registers Window for more information.

Debug.Restart

SHIFT + F5

Terminates a debugging session, rebuilds, and then starts running the application from the beginning again. Available in break and run modes.

Debug.RunToCursor

F7

In break mode, resumes execution of your code from the current statement to the selected statement. The Current Line of Execution margin indicator appears in the Margin Indicator bar.

Debug.SetNextStatement

CTRL + SHIFT + F7

Sets the execution point to the line of code you choose.

Debug.ShowNextStatement

ALT + NUM *

Highlights the next statement to be executed.

Debug.Start

F5

Automatically attaches the debugger and runs the application from the startup form specified in the <Project> Properties dialog box. Changes to Continue if in break mode.

Debug.StartWithoutDebugging

CTRL + F5

Runs the code without invoking the debugger.

Debug.StepInto

F8

Executes code one statement at a time, following execution into function calls.

Debug.StepOut

SHIFT + F7

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

Debug.StepOver

F10

Executes the next line of code but does not follow execution through any function calls.

Debug.StopDebugging

ALT + F5

Stops running the current application in the program. Available in break and run modes.

Debug.ToggleBreakpoint

F9

Sets or removes a breakpoint at the current line.

Debug.ToggleDisassembly

CTRL + F7

Displays the disassembly information for the current source file. Available only in break mode.

See Also

Tasks

How to: Work with Keyboard Shortcuts

Concepts

Pre-defined Keyboard Shortcuts

Other Resources

Visual C++ 2.0 Default Shortcut Keys