You know you're a pro when you can debug like this.
- Step 1: Turn it off and on again.
- Step 2: Check the logs.
- Step 3: Ask a junior dev.
And when you can't find the problem, just add more code.
while (true) { echo('Error 404: Not Found'); }
Common Pitfalls:
Don't be like the amateur who thinks they can debug with just a grep.
- Don't use print statements for production code.
- Don't forget to return from functions.