Purposefully debugging without using a debugger?

后端 未结 20 1834
春和景丽
春和景丽 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:38

    I absolutely use my debugger. When a test I wrote is failing, I often step through the lines, checking my expectations against the actual values shown in the code.

    That being said, after years of programming experience, you then to NEED the debugger less and less as you are more able to just "know" why the problem manifested.

    Two thing that really make the debugger userfil are: conditional breakpoints and the object inspector. They are by far the most useful debugger features for me.

提交回复
热议问题