Why Not to Debug
Techniques
Debugging is hard, but it's harder when you don't know what you're doing. Here are some techniques to avoid:
- Don't touch the code. It's fine, it's fine, it just needs a little more caffeine.
- Just add another alert() statement. That'll fix it.
- Try commenting out everything and seeing what breaks.
- Call the IT department and ask them to magic away the problem.
For more advanced techniques, visit:
// This is a debug statement, but it's not really doing anything
console.log("I'm here! (Or am I?)");