1314 Visual Studio .NET Debugger Appendix D 6 (Java web server)

1314 Visual Studio .NET Debugger Appendix D 6 namespace Debug 7 { 8 class DebugExample 9 { 10 static void Main( string[] args ) 11 { 12 int x =10; 13 14 Console.Write( “The value of ” + x + ” factorial is: ” ); 15 16 // loop to determine x factorial, contains logic error 17 for ( int i = x; i >= 0; i–) 18 x *= i; 19 20 Console.Write( x ); 21 22 Console.ReadLine(); // delay program exit 23 24 } // end main 25 26 } // end class DebugExample 27 28 } // end namespace Debug The value of 10 factorial is: 0 Fig. D.2 Fig. D.Fig.Fi D.2g. D.22Debug sample program. (Part 2 of 2.) Fig. D. To set breakpoints in Visual Studio, click the gray area to the left of any line of code or right-click a line of code and select Insert Breakpoint. A solid red circle appears, indicating that the breakpoint has been set (Fig. D.3). The program execution is suspended when it reaches the line containing the breakpoint. To enable breakpoints and other debugging features, we must compile the program using the debug configuration (Fig. D.4). Select Debug from the configuration toolbar if it is not already selected. Alternatively, select Build > Configuration Manager and change the Active Solution Configuration to Debug. Breakpoint Breakpoint tooltip Fig. D.3 Fig. D.Fig..Fi D3g. D.3D.3Setting a breakpoint. Fig.
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.

Leave a Reply