20.10. Using the Debugger Keys and Toolbar
If you're new to VWD, you might start debugging by using the Debug menu items. We all have our own styles, but many of us slip into using keystrokes for efficiency. By using the function keys in Table 20-1, you won't take your eyes off the code and debugger panes during a debugging session.
If you prefer clicking buttons to debug (see Figure 20-15), detach the Debug toolbar and place it near the code where it's handy.
Keystroke | Command | Description |
---|---|---|
F5 | Start/Continue Debugging | Runs (or continues running) the current page in the debugger. If you've used the Set As Start Page command on a different file, it runs that one. |
Shift+F5 | Stop Debugging | Ends the debugging session and closes the browser instance. |
Break All | Pauses the execution and enters break mode. Try using this if your code's caught in a loop. | |
Ctl+Shift+F5 | Restart | Restarts execution of the page without forcing a recompile. |
F11 | Step Into | Execute statements one at a time, including called functions and methods. |
F10 | Step Over | Execute statements one at a time except execute called methods and functions as an uninterrupted block. |
Shift+F11 | Step Out | Finish executing the remaining statements in the current function or method without stopping. |
Show Next Statement | Move the insertion point to the line of code to execute next. It's not always obvious that anything has happened when you use this. |
Figure 20-15. The Debug toolbar buttons.
Get ASP.NET 3.5 For Dummies® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.