Chapter 8 Quick Reference


Chapter 8 Quick Reference

To

Do this

Display the Debug toolbar

On the View menu, point to Toolbars, and then click Debug.

Set a breakpoint

In the Code Editor, click in the Margin Indicator bar next to the statement where you want to stop program execution. When the compiler reaches the breakpoint, it will enter debugging mode.

or

Place a Stop statement in the program code where you want to enter debugging mode.

Execute one line of code in the Code Editor

Click the Step Into button on the Standard toolbar.

Examine a variable, a property, or an expression in the Code Editor

In debugging mode, select the value in the Code Editor, and then hold the pointer over it.

Use the Autos window to examine a variable on the current or previous line

In debugging mode, click the Debug menu, point to Windows, and then click Autos.

Add a variable, a property, or an expression to a Watch window

In debugging mode, select the value in the Code Editor, right click the value, and then click Add Watch.

Display a Watch window

In debugging mode, click the Debug menu, point to Windows, point to Watch, and then click the window.

Display HTML, XML, or dataset information during a debugging session

Click the visualizer icon in an Autos, a Watch, a Locals, or a DataTip window during a debugging session

Open the Immediate window

Click the Debug menu, point to Windows, and then click Immediate.

Run a command in the Visual Studio IDE from the Command window

At the > prompt, type the name of the command, and then press Enter. For example, to save the current project, type File.SaveAll, and then press Enter.

Switch to the Command window from the Immediate window

Type >cmd, and then press Enter. To switch back to the Immediate window, type immed, and then press Enter.

Remove one or more breakpoints

Click the breakpoint in the Margin Indicator bar of the Code Editor.

or

Click the Delete All Breakpoints command on the Debug menu.

Stop debugging

Click the Stop Debugging button on the Standard toolbar.



Microsoft Visual Basic 2005 Step by Step
Microsoft Visual Basic 2005 Step by Step (Step by Step (Microsoft))
ISBN: B003E7EV06
EAN: N/A
Year: 2003
Pages: 168

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net