JS Debugging and Error Handling
Posted on Jun 1st, 2020
Today’s topics
- What’s a bug?
- Debugging tools and techniques
- Errors and exceptions
- Handling errors with try…catch
Project
Debugging Parking Validation Form
For this assignment, there is no code to write and no repo to clone. Your assignment is to debug the weekend homework together in pairs and commit your debugged code. Please note in a commit message the name of the person who helped you debug!
Links and 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, slides, and video from class
- class slides PDF
- morning class video Access Password: 0w^2G9c^