JS Debugging ⛔ 🐞
Posted on May 24th, 2021
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 today’s assignment, there is no code to write and no repo to clone. Your task is to debug the weekend homework together in collaboration with one or two others in class and commit your debugged code. Please note in a commit message the name(s) of the person(s) 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 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!
🤓 Essential Nerd Humor: Gary Bernhardt’s WAT talk