How do you reproduce bugs that occur sporadically?

前端 未结 28 1288
离开以前
离开以前 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:18

    Read the stack trace carefully and try to guess what could be happened; then try to trace\log every line of code that potentially can cause trouble.

    Keep your focus on disposing resources; many sneaky sporadical bugs i found were related to close\dispose things :).

提交回复
热议问题