Appendix D Visual Studio .NET Debugger 1315 Debug (Web server application)

Appendix D Visual Studio .NET Debugger 1315 Debug setting Fig. D.4 Fig. D.Fig..Fi D4g. D.4D.4Debug configuration setting. Fig. Selecting Debug > Start compiles the program and begins debugging. When debugging a console application, the console window appears (Fig. D.5), allowing program interaction (input and output). When the debugger reaches the breakpoint (line 18) program execution is suspended, and the IDE becomes the active window. Programmers may need to switch between the IDE and the console window while debugging programs. Figure D.6 shows the IDE with program execution suspended at the breakpoint. The yellow arrow to the left of the statement x *= i; indicates the line at which execution is suspended and that the line contains the next statement to execute. Note that the title bar of the IDE displays [break] this indicates that the IDE is in break mode (i.e., the debugger is running). Once the program reaches the breakpoint, a programmer can hover with the mouse on a variable (in this case xor i) in the source code to view the value of that variable in a tooltip as shown in Fig. D.6. Testing and Debugging Tip D.3 Placing a breakpoint after a loop in a program allows the loop to complete without stopping before the breakpoint is reached. D.3 Examining Data Visual Studio .NET includes several debugging windows that allow programmers to examine variables and expressions. All the windows are accessible from the Debug > Windows submenu. Some windows are listed only when the IDE is in break mode (also called debug mode). The Watch window, which is available only in break mode (Fig. D.7), allows programmers to examine the values of related groups of variables and expressions. Visual Studio .NET provides a total of four Watch windows. Fig. D.5 Fig. D.Fig..Fi D5g. D.5D.5Console application suspended for debugging. Fig.
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.

Leave a Reply