Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

In the tags I frequent on Stack Overflow, a big chunk of questions should be answered with some basic knowledge about how to debug things - ie., teaching the OP to fish - instead of giving a fix for the piece of code presented.

Are there any good debugging tutorials for newbies, especially

  • Basic debugging techniques - understanding a piece of code, finding the problem by walking through it step by step instead of posting on SO and saying "it doesn't work"

  • How to debug simple PHP scripts (For situations like "my POST variables aren't showing", etc.)

  • How to debug Ajax scripts (How to use Firebug to see what gets sent, etc.)

but also other languages and platforms?

share|improve this question
add comment

closed as not constructive by maple_shaft Nov 5 '12 at 12:41

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

Many years ago I had a book called Debugging Java. Eventually I threw it out because it didn't contain that much useful stuff for me, but it was a good beginner level book on debugging techniques. As a Java-specific book it is quite outdated and at places ridiculous, but as a general introduction to debugging, it may be useful.

share|improve this answer
add comment

Here are the tutorials I know for .NET & Visual Studio:

For simple PHP scripts, you can prevent most frustrations by teaching the student how internet works.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.