Generating .NET crash dumps automatically

后端 未结 7 2247
清酒与你
清酒与你 2020-11-28 06:57

I know how to generate Crash Dump files with ADPlus or DebugDiag, but I\'m wondering if there is a way to do this on a customer\'s computer without installing these tools...

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 07:06

    Do you use a logging framework like log4net? Normally you switch off debug-level messages for a release. However you can think about writing a special appender which logs to a file only in certain cases (like a crash). This appender writes at first into a memory-only ringbuffer which can be written to a file, later - triggered for instance by a exceptionhandler like suggested by 280Z28.

提交回复
热议问题