Chapter 38. Testing and Debugging
Every programmer knows about bugs—mistakes in code that lead to errors, unexpected behavior, and outright crashes. One approach to finding bugs is to use a debugger. Visual Studio has a very nice debugger that you can use to look at your program as it runs. If you want to see the debugger at work, select Start Debugging from the Visual Studio Debug menu, and start exploring.
The problem with a debugger is that it is reactive. You write your program and then use the debugger to try to re-create any problems that your testing process highlighted. If you are working from user feedback, you have to try to simulate the environment they were working in and the steps they took in order to get to the point where the debugger ...
Get Introducing Visual C# 2010 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.