Bug Hunting Strategies?

前端 未结 14 1345
北恋
北恋 2021-02-08 12:00

Let\'s say you have a bug that was found in functional testing of a fairly complex part of the software. It could stem from bad/unexpected data in the database, middle-tier cod

相关标签:
14条回答
  • 2021-02-08 12:58

    My order:

    1. Look at the code of 1-2 most likely causes (chosen based on gut feeling).
    2. If nothing is found, execute the code in debugger (or if not possible, insert debugging/logging statements to the code).
    3. If nothing is found, call somebody else and repeat steps 1 and 2 together with him/her.
    0 讨论(0)
  • 2021-02-08 13:00

    First I try to understand the bug, then I do all things you suggest, in order based on gut feeling. This is really a trade-off of how certain you are of a specific cause, and how easy that is to test.

    In addition, when I investigate a cause I try to directly add the really quick checks as I'm inspecting the code anyway (add some temporary debug output statements, add asserts and such)

    0 讨论(0)
提交回复
热议问题