What Do I Do Now?
- Take a deep breath.
- Use console.log() to print out information in your program.
- Google the error messages.
- Check the simple stuff. Try to confirm your assumptions.
- Go do something else. Come back in 5 minutes. Try it again.
- Do you have the documentation open? No? Open it and look at it.
- Review this Debugging link from p5.js. It is summarized below.
- Don't panic. Change perspectives.
- Observe the problem.
- Save a copy.
- Remove black boxes.
- Add error reporting.
- Search for help.
- Copy and paste your code. Send it and a screenshot of your error to the professor.