The most common debugger commands are available on the toolbar. The
toolbar is located in the main WDB GUI window below the menu bar.
Command |
Icon |
Shortcut |
Action |
Load Program |
|
Ctrl+F5 |
Opens the Load
Program dialog box where you can load an executable and specify
program settings.
|
Open File
|
|
Ctrl+O |
Opens the
Open File dialog box where you can select a source file to
open in the Source view.
|
Save |
![Save Source File](img/save.gif) |
Ctrl+S |
Saves the file currently displayed in an edit tab.
|
Find ... |
![Open Source File](img/find.gif) |
Alt+F3 |
Opens the
Find dialog box, where you can search for specific text or a
regular expression.
|
Go |
![Go](img/go.gif) |
F5 |
Starts or continues
program execution at the current program counter location.
|
Restart |
![Restart](img/restart.gif) |
Ctrl+Shift+F5 |
Restarts debugging at the
program's entry point. Clears and initializes the Watch,
Local Variables, and Call Stack views.
|
Stop Debugging |
![Stop Debugging](img/stop_debug.gif) |
Shift+F5 |
Stops program execution
and enables loading of a new executable. Clears and initializes all
views except the Source view.
|
Break Execution |
![Break](img/break.gif) |
none |
Pauses the program at its
current location.
|
Insert/Remove Breakpoint |
![Breakpoint](img/breakpt.gif) |
F9 |
Allows you to insert or
remove a breakpoint at the current cursor location.
|
Show Next Statement |
![Show Next Statement](img/show_next.gif) |
Alt+* |
Restores the context to
the location of the program counter and updates all applicable
views.
|
Step Into |
![Step Into](img/stepin.gif) |
F1 |
Provides a single step
execution of the current function or instruction.
|
Step Over |
![Step Over](img/stepover.gif) |
F10 |
Steps over the next
statement. Executes function calls without stepping into them.
|
Step Out |
![Step Out](img/stepout.gif) |
Shift+F11 |
Executes the program
through completion of the current function or instruction. Then
pauses at the statement immediately following the function call.
|
Step Last |
![Step Last](img/steplast.gif) |
F8 |
Steps into the function call without stepping
into the argument evaluation function calls.
|
Run to Cursor |
![Run to Cursor](img/run_to_cursor.gif) |
Ctrl+F10 |
Executes the program
until reaching the current cursor location.
|
Quick Watch |
![Quick Watch](img/qwatch.gif) |
Shift+F9 |
Opens or closes the Quick
Watch dialog box. When the dialog box opens, you can view the
value of a variable that you have selected in the active view.
|
Watch |
![Watch](img/watch.gif) |
none |
Opens or closes the Watch
view in a separate window.
|
Local Variables |
![Local Variables](img/locals.gif) |
none |
Opens or closes the Local
Variables view in a separate window.
|
Call Stack |
![Call Stack](img/stack.gif) |
none |
Opens or closes the Call
Stack view in a separate window.
|
Registers |
![Registers](img/registers.gif) |
none |
Opens or closes the Registers
view in a separate window.
|
Threads |
![Registers](img/threads.gif) |
none |
Opens or closes the Threads
view in a separate window.
|
Disassembly |
![Disassembly](img/disassembly.gif) |
none |
Opens or closes the Disassembly
view in a separate window.
|