开发者

How to generate .NET 4 Dump files

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜