35

#1 learn how to use debugger
#2 always cover your code with unittests

Comments
  • 1
    Sometimes print statement placed strategically works better than GDB. .. lol
  • 4
    @kunaldawn yepp.. However gdb, jdb, wtv is at least a lil better than staring at the code and trying to model every possible scenario in your head until you think of the one that would reproduce the bug :)

    yepp, I used to do that.. Stare at the code until it gives up all its flaws and secrets to me :D
  • 0
    @ne@netikras haha true shit .. but I now use profilers and debuggers always..
Add Comment