10.02.2014 Views

Beginning Ajax With ASP.NET (2006).pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 13<br />

Figure 13-17<br />

Notice that the result1 variable is displaying a value of undefined in the Watch window. Pressing F10<br />

twice to advance the programs execution past the call to the AddValues method causes the value of the<br />

result1 variable to be updated within the Watch window according to the operation within the code’s<br />

execution.<br />

Multiple items can be added to the Watch window to enable the developer to track the values of variables<br />

as execution progresses.<br />

Using the Command Window<br />

Alternatively, a developer may wish to evaluate conditions that are not part of the program itself as the<br />

code is executing. To accomplish this, a developer can make use of the Command window. This allows<br />

interactive evaluation of ad hoc statements within the context of the applications execution at the point<br />

in time that it has been paused.<br />

Try It Out<br />

Using the Command Window<br />

To demonstrate this, again run the previous application by pressing the F5 key to start the application in<br />

debug mode. The application will present the debug screen within Visual Studio with execution paused<br />

on the debugger statement.<br />

Ensure that the Command window is visible by clicking on the Command Window tab (typically located<br />

on the bottom right of the Visual Studio .<strong>NET</strong> environment) or by selecting the View➪Other Windows➪<br />

Command Window (or by pressing Ctrl+Alt+A).<br />

346

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

Saved successfully!

Ooh no, something went wrong!