开发者

Solution for catching error & report errors in application

开发者 https://www.devze.com 2022-12-20 07:20 出处:网络
I see in some applications, when a bug happens, a dialog will appear with error detail, and it also includes a Send button to send this error detail to my logging server. You will开发者_StackOverflow中

I see in some applications, when a bug happens, a dialog will appear with error detail, and it also includes a Send button to send this error detail to my logging server. You will开发者_StackOverflow中文版 see this feature in Firefox web browser.

Please help me to implement this feature in .NET. Thanks.


 AppDomain.CurrentDomain.UnhandledException += 
    new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException)

Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);

http://www.switchonthecode.com/tutorials/csharp-tutorial-dealing-with-unhandled-exceptions

0

精彩评论

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