JS Debugging and Error Handling
Posted on Sep 29th, 2020
Today’s topics
- What’s a bug?
- Debugging tools and techniques
- Errors and exceptions
- Handling errors with try…catch
Project
Single-page notes app, continued
Technical Presentations this Thursday at 2:00 pm - 4:00 pm
Read more about the requirements for technical presentations.
Our class will present, followed by presentations by Team Three (finishing Phase 3) and Team Four (finishing Phase 3). Plan to stay after our presentations are over so that you can watch the presentations from the other teams.
🔖 Resources
- Get started with debugging JS in Chrome Dev Tools
- How to step through code at a breakpoint
- How to use the Dev Tools watch panel
- The JS Error Object
- Chrome Dev Tools Guide
- Handling errors with try…catch
- Conference talk about linters and StandardJS
⭐️ EXTRA/TMI
There’s a an awesome article about stacks, which we encounter in a stack trace in our debugging adventures, in Vaidehi Joshi’s BaseCS blog series. It’s not necessary to read this to understand debugging, but if you want some more information about terminology and what’s really happening, it’s great!
Code and videos
- example code from class
- notes on debugging
- Morning class video Access Passcode: 16f*#vd0
- Afternoon class video Access Passcode: #W90dZ7S