- What went wrong?
- Where to start?
- Where to look?
- How to look?
- How to research?
- What to research?
- What did you expect? vs What happened?
- How to categorize the failure
- Logic
- Data
- Visual
- Interaction
- 💥
- Usually the last thing you changed
- This is why having good git commits is important
git diffis your friend- Can you roll back those changes and the problem goes away?
- Then it must be that change that caused it
- logic issue? - Look in models, controllers, a little bit in views (where there is logic)
- data? - Look in your database, or your models
- visual? - Look in your views
- interaction? - Look in your javascript
- Logs are your friend, get to know the rails log
- Javascript console is also your friend, keep it open when using your app
heroku logscan show you what is happening to a failure to your app in production
- Copy/paste the error message into google
- Maybe surround the entire thing, or part of it in quotes (for an exact match)
- Search key words
- Re-read the docs for the gem/library/language-feature you are using
- The error message
- The code that generated it
- The lines of code you recently added, or the gem you recently added.