6 Debugging Tactics
You can't code without debugging
Hi there 👋
Debugging is a part of the development process. There is no way you'll be coding without debugging. It's a must to build muscle to succeed in your coding tasks.
This article gathers the most efficient tactics for debugging your code!
1- Console
This is the basics of the basics. If there is an issue, you should first know what's the problem. What's the error? From the error, take action. If no errors are displayed, make sure to add logs to see the path your code takes and if it takes the road you designed for it to take.
Adding logs for each step you take to complete a feature or functionality will make it easy to investigate and catch errors. Make sure to delete the console
logs in your code, though. If you need to keep logs in the code, then use a log service to do so.
2- StackOverflow
Who doesn't use StackOverflow? It's the best friend for developers. This solution is worth checking because sometimes you'll find the answer right away, save your time, and increase your productivity. This tactic is quick and concise.
Make sure that you understand the solution and that you're convinced that it's clean and good code…