Chapter 1: Debugging Basics

Debugging is like trying to find a needle in a haystack, but the needle is on fire and the haystack is on fire and it's a metaphorical haystack, man.

Step 1: Turn off the fire.

Step 2: Turn on the computer.

Step 3: Look for the needle, but not too hard.

Step 4: If you can't find the needle, call for help.

Step 5: If you still can't find the needle, give up and have a snack.

Next Chapter: Solving Simple Errors Appendix: Debugging Slang
	// This is what you should look for in your code
	if ($error) {
	  echo "OH NO!";
	}
	
	// And this is not what you should look for
	if ($error) {
	  // do nothing;
	}
	

What's the difference?