bug-hunting-techniques/bug-hunting-techniques-101
Welcome to Bug-Hunting Techniques 101, where you'll learn the art of finding those pesky little bugs that ruin your code.
Lesson 1: The Basics
Step 1: Turn up the volume on your IDE's error logs.
- Step 2: Read through the logs like they're a novel.
- Step 3: Repeat steps 1 and 2 until the bug is found.
- Step 4: Celebrate with a well-deserved coffee.
Lesson 2: Debugging by Elimination
Step 1: Remove all the unnecessary code.
- Step 2: Remove the rest of the code.
- Step 3: Wonder if it's really the code or just your cat.
Lesson 3: The Power of Google
You can't find it on Google? Congratulations, you've got a real challenge.
- Step 1: Type the error in Google.
- Step 2: Click on the first result.
- Step 3: Realize it's not exactly the same issue.
Lesson 4: The Art of Guesswork
When all else fails, just make something up.
- Step 1: Close your eyes.
- Step 2: Point at the code.
- Step 3: Declare it was definitely that line that did it.