Recommended reading on general debugging techinques

只谈情不闲聊 提交于 2019-12-03 03:54:18

I've studied a lot of debugging books and thoughts. Probably the best one is Debugging By Thinking. I think it covers everything that needs to be said, in a logical fashion, in an easy-to-read package.

I'd recommend reading everything you can find on Test-driven development (TDD). From the Wikipedia article:

Programmers using pure TDD on new ("greenfield") projects report they only rarely feel the need to invoke a debugger.

From a personal standpoint, it's been my experience that the more unit tests I write, the less time I spend in the debugger.

Specifically for .NET, here's a nice article on Easier Debugging with Attributes.

Rob Wells

I highly recommend the excellent book Debugging by David Agans.

While not specifically about programming, the principles are universal. One of the techniques in here provided the biggest quantum leap in my diagnostic capabilities, namely, backing out your fix to prove that just your fix has corrected the problem.

It takes a native approach (win32) but Advanced Windows Debugging is a great book.

I like Ian Taylor's.

Tess Ferrandez's blog If broken it is, fix it you should is both directly relevant to specific real-life scenarios you're likely to encounter in .Net debugging, (typically involving ASP.Net), and more generally thought provoking.

John Robbins' debugging books and blog are similarly worth reading.

Mike Stall's .Net Debugging Blog likewise.

Mark Russinovich's blog is remarkable - his knowledge of Windows internals combined with great forensic skill is impressive.

My first introduction to debugging was this tutorial. It uses GDB to debug a sample C++ code, but the principles are generally applicable. The thing I really like is the way the author explains his train of thought about what might be wrong, and then the specific commands needed to test the possibilities. It's pretty fun! If you're new to debugging, it's a great insight into the process.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!