Purposefully debugging without using a debugger?

后端 未结 20 2093
春和景丽
春和景丽 2021-02-01 08:49

In chapter 5 of \"The Practice of Programming\" Brian Kernighan and Rob Pike write:

As a personal choice, we tend not to use debuggers beyond getting a st

20条回答
  •  青春惊慌失措
    2021-02-01 09:28

    I use debugger only as last possible solution, because with debugger I often have to trace tons of code which has nothing to do with my problem. So I prefer to use my intuition and place some prints at places where could be problem. With this I solve 99.9% bugs very quickly. No 3 day debugging here!

提交回复
热议问题