Generating .NET crash dumps automatically

后端 未结 7 2224
清酒与你
清酒与你 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:04

    You can call Environment.FailFast, which will:

    The FailFast method writes the message string to the Windows Application event log, creates a dump of your application, and then terminates the current process. The message string is also included in error reporting to Microsoft.

    Among other things.

提交回复
热议问题