Using Exception.Data

前端 未结 4 1833
梦谈多话
梦谈多话 2020-12-13 23:33

How have you used the Exception.Data property in C# projects that you\'ve worked on?

I\'d like answers that suggest a pattern, rather than those that are very speci

4条回答
  •  天命终不由人
    2020-12-14 00:31

    The exception logger I use has been tweaked to write out all the items in the Data collection. Then for every exception we encounter that we cannot diagnose from the exception stack, we add in all the data in that function's scope, send out a new build, and wait for it to reoccur.

    I guess we're optimists in that we don't put it in every function, but we are pessimists in that we don't take it out once we fix the issue.

提交回复
热议问题