开发者

How to generate .NET 4 Dump files

开发者 https://www.devze.com 2023-01-25 19:07 出处:网络
I wante开发者_Go百科d to know if there is a possibility to dump all stack variable when an exception occurs in .NET 4 so I can analyze it later (in production serveR)

I wante开发者_Go百科d to know if there is a possibility to dump all stack variable when an exception occurs in .NET 4 so I can analyze it later (in production serveR)

Thanks


There are some resources around.

See Writing Minidumps in C#. Minidumps later can be analyzed either in WinDbg or in VS 2010.

You may also interested in Is it impossible to show forms when handling a AppDomain.CurrentDomain.UnhandledException? and What is the best way to collect crash data?


The StackTrace class is intended to do this.

You can also gather important information like the source file, position, running thread, the method in which the crash occured etc.


Have you checked the windows event log, usually exceptions are logged there with all the details you're asking for.


windbg can do this.

See details on this blog.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号