Purposefully debugging without using a debugger?

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

    Print statements that get dumped to a file can be operated on textually. grep, sort, sed, and awk can help for complex debugging issues. Also one could write a small program to parse the dumped text if necessary.

提交回复
热议问题