Debugging an infinite loop in JavaScript code running on Window load
Channel: Anne Gunn
Date: 14/04/2019

Follow my journey as I try to:
- verify I actually have an infinite loop
- deal with my debug log statements not showing up
- figure out how to get past the problem is in the code running as the window loads, which makes debugging harder
- drill down to find the root cause 
- fix it (With a "cheat" here: Once I narrowed the problem down to a few lines of code, I looked in our textbook to see what was missing.)

Note: I think the first 5-10 minutes of this video is pretty useful: how to tell an infinite loop is happening and how to search for what code to suspect. Then there's about five minutes of wild goose chase as I fool myself about why my debug logging is not showing up. Around 15 minutes, I paused the video for a while, stepped a way, and gave it a break. When I came back, I was back on track and the second half shows me actually finding and fixing the problem. Not in a straight line, but I think it's useful to know what to look for more than it's useful to know exactly what caused this particular problem.