DEV Community

Discussion on: How did that weird bug come in the code

Collapse
 
sandordargo profile image
Sandor Dargo

What do you use to debug? You guessed it right. It’s a debugger πŸ˜ƒ

That's just one tool in my toolbox in order to debug a bug. Sometimes just looking at the nature of the bug and at the code will be enough. Other times print statements will be faster and simpler. Yet other times, if it's really not evident eventually I have to go to the debugger.

Collapse
 
adityasridhar profile image
Aditya Sridhar

Agree with you on the print statements bit. Simpler bugs can easily be caught that way.
Debugger as you mentioned is more useful for complex and weird bugs.