Learn How To Debug

2/12/2022

Coding is great, but it can also be a frustrating experience.

It’s hard to know upfront every state that your code can be in (though writing tests helps with that).

Sometimes things won’t work and you’ll find yourself stuck for hours without making progress. So what can you do when that happens?

If you’re getting some errors in your console, read them carefully as they may contain the information you need in order to solve your problem.

Try to become familiar with the debugging tools in your code editor.

Use print statements and breakpoints to step through your code and verify your assumptions, and learn more advanced debugging techniques too. These can save you a lot of time.