Section 9.5. Summary


9.5. Summary

  • Visual Studio 2005 includes a powerful debugger that lets you step through your program and examine the value of variables and objects as methods execute.

  • You can set breakpoints in your code, which causes execution to stop when it reaches that point. Break points can be set to stop every time, every nth time, or when a particular condition is true.

  • Press F11 to step into called methods, and F10 to skip over method calls.

  • The Autos window displays the values of the variables used in the current statement and the previous statement. The Locals window shows the values of all the variables in the current method.

  • The Watch window allows you to keep an eye on variables or objects as your method executes, revealing not only their value, but with complex objects allowing you to "drill down" into their internal state.

    Figure 9-16. Tracing the call stack
  • The QuickWatch window displays information about a single object, and allows you to manipulate that object without changing the value of the object in the running program.

  • The Call Stack window shows you the method that called your currently executing method, and the method that invoked that method, and so forth, so that you can see how you arrived at the currently executing method.



Learning C# 2005
Learning C# 2005: Get Started with C# 2.0 and .NET Programming (2nd Edition)
ISBN: 0596102097
EAN: 2147483647
Year: 2004
Pages: 250

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