In the preceding section, you learned that the Quick Info feature allows you to examine the value of a variable. In this section, you will learn how to use the Locals window to assign new values to variables while your program is running. You will also use the Watch window to examine the values of expressions.
Figure C.9. Setting breakpoints at lines 23 and 26.
Figure C.10. Entering the deposit amount before the breakpoint is reached.
Figure C.11. Program execution pauses when debugger reaches the breakpoint at line 23.
(This item is displayed on page 1448 in the print version)
Figure C.12. Examining variable depositAmount.
(This item is displayed on page 1448 in the print version)
Figure C.13. Examining the values of expressions.
(This item is displayed on page 1448 in the print version)
Figure C.14. Displaying the value of local variables.
(This item is displayed on page 1448 in the print version)
Figure C.15. Modifying the value of a variable.
(This item is displayed on page 1449 in the print version)
C 4 Controlling Execution Using the Step Into, Step Over, Step Out and Continue Commands |
Preface
Index
Introduction to Computers, the Internet and Visual C#
Introduction to the Visual C# 2005 Express Edition IDE
Introduction to C# Applications
Introduction to Classes and Objects
Control Statements: Part 1
Control Statements: Part 2
Methods: A Deeper Look
Arrays
Classes and Objects: A Deeper Look
Object-Oriented Programming: Inheritance
Polymorphism, Interfaces & Operator Overloading
Exception Handling
Graphical User Interface Concepts: Part 1
Graphical User Interface Concepts: Part 2
Multithreading
Strings, Characters and Regular Expressions
Graphics and Multimedia
Files and Streams
Extensible Markup Language (XML)
Database, SQL and ADO.NET
ASP.NET 2.0, Web Forms and Web Controls
Web Services
Networking: Streams-Based Sockets and Datagrams
Searching and Sorting
Data Structures
Generics
Collections
Appendix A. Operator Precedence Chart
Appendix B. Number Systems
Appendix C. Using the Visual Studio 2005 Debugger
Appendix D. ASCII Character Set
Appendix E. Unicode®
Appendix F. Introduction to XHTML: Part 1
Appendix G. Introduction to XHTML: Part 2
Appendix H. HTML/XHTML Special Characters
Appendix I. HTML/XHTML Colors
Appendix J. ATM Case Study Code
Appendix K. UML 2: Additional Diagram Types
Appendix L. Simple Types
Index