Debugging Tips

Knowing the Visual Studio .NET debugger inside and out makes it easier to debug programs. But that’s only part of what you need to debug Visual Studio .NET programs. You need an approach to debugging that helps you get to the problem. You can spend hours chasing through a maze trying to find a bug, but if you follow the suggestions presented next, you should better be able to avoid costly dead ends.

You can sometimes fix a bug and then find another bug related to the first or to the way you fixed it. When I fix a bug, I ask myself three questions to ensure that I’ve thought carefully about its significance. You can use these questions to improve productivity and quality every time you think you’ve found and fixed a bug.

The key ...

Get Special Edition Using® Microsoft® ASP.NET 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.