Debugging

No one can write bug-free code, so debugging is a requisite skill for every software engineer. Here are some tips about debugging Go programs: (1) Print Yes! Printing logs seems the easiest method, but it is indeed the most effective approach in most cases. Go has provided a big family of printing functions in fmt package, and using them neatly is an expertise you should grasp. (2) Debugger In some scenarios, maybe you need the specialized debugger tools to help you spot the root cause. [Read More]