How do you reproduce bugs that occur sporadically?

前端 未结 28 1283
离开以前
离开以前 2021-01-30 19:43

We have a bug in our application that does not occur every time and therefore we don\'t know its \"logic\". I don\'t even get it reproduced in 100 times today.

Disclaime

28条回答
  •  逝去的感伤
    2021-01-30 20:15

    Tons of logging and careful code review are your only options.

    These can be especially painful if the app is deployed and you can't adjust the logging. At that point, your only choice is going through the code with a fine-tooth comb and trying to reason about how the program could enter into the bad state (scientific method to the rescue!)

提交回复
热议问题