30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1308 <strong>Visual</strong> Studio .<strong>NET</strong> Debugger Appendix D<br />

Fig. D.8 Au<strong>to</strong>s and Locals windows.<br />

The Immediate window provides a convenient way <strong>to</strong> execute statements (Fig. D.9).<br />

To execute a statement, type it in<strong>to</strong> the window and press Enter. Procedure calls can be executed<br />

as well. For example, typing Console.WriteLine(i) then pressing Enter outputs<br />

the value of i in the console window. Notice that the = symbol can be used <strong>to</strong> perform<br />

assignments in the Immediate window. Notice that the values for i and x in the Locals<br />

window contain these updated values.<br />

Testing and Debugging Tip D.5<br />

Use the Immediate window <strong>to</strong> call a procedure exactly once. Placing a procedure call inside<br />

the Watch window calls it every time the program breaks. 24.0<br />

D.4 <strong>Program</strong> Control<br />

The Debug <strong>to</strong>olbar (Fig. D.10) contains but<strong>to</strong>ns for controlling the debugging process.<br />

These but<strong>to</strong>ns provide convenient access <strong>to</strong> actions in the Debug menu. To display the Debug<br />

<strong>to</strong>olbar, select View > Toolbars > Debug.<br />

Fig. D.9 Immediate window.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!