JS Debugging ⛔ 🐞
Posted on Oct 7th, 2021
Today’s topics
- What’s a bug?
- Debugging tools and techniques
- Errors and exceptions
- Handling errors with try…catch
🐛 Project: Debugging JS Calculator
For today’s assignment, there is no code to write and no repo to clone. Continue pushing forward on your JS calculator!
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!
Did you finish your JS calculator? Kudos! Here’s another project to try your hand at…
invitation link to the assignment
Still looking for things to do? Revist an previous lab or project that you were unable to complete!
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