“The Art of Debugging – A Developer’s Best Friend” – Ten lessons, so far, toward becoming a Visual Studio Debugging Ninja
“Art is the process or product of deliberately arranging elements in a way that appeals to the sense or emotions. It encompasses a diverse range of human activities and I think debugging is an art form. There's nothing more beautiful (almost nothing) than watching your errant code expose it's semi-flawed algorithmic beauty. And nothing appeals to my emotions more than make my code more robust and more efficient after watching the debugger execute it one line at a time.
John Robbins is the pre-eminant debugger of today. You may check out his book for more information. Much of this material is based on his work.
Enter Visual Studio 2008
This blog is about Visual Studio. So the tips and techniques I talk about are things you can do with Visual Studio.
Download the sample project – debugging.zip
Here are the topics we want to cover
Stack Window Breakpoints
Sub Expression Breakpoints
Quickly Breaking on a Function
Breakpoint Hit Count
Assertions on the Fly
Filter Breakpoint Modifier
The Amazing Data Tip
Calling Methods in the Watch Window
Make Object ID
Set Next Statement
Setting up .NET Reference Source Code Stepping
Some light Monday reading… ;)
This is a great series of articles, highly diagramed and to the point, on using the debugging in Visual Studio to its fullest.
Related Past Post XRef:
VS 2008 Tracepoints – Debug output without touching your code (Say goodbye to Debug.Write ?)