O'Reilly logo

Introducing Visual C# 2010 by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required