简体   繁体   中英

Crash reporting library for VSTO applications

I'm working on a VSTO application, clients had some issues with their plugins like crashes.

As iOS Developer i can use tons of libraries to report all crashes on clients devices, like crashlytics.

Is there any equivalent libs for windows VSTO apps?

Also i can't add try {}catch (e){report(e);} on every block code that i write, i'm looking for something smarter.

You can use any .Net libraries. VSTO doesn't require anything specific.

For example, you can send an email with the required techniocal information programmatically.

Even thought I agree with the first part of Eugene's answer, I have correction to the second part. There is specific behavior of vsto-addins. They don't allow to catch all unhandled exceptions in one place (you can read more about it here and here , for example), so you need to introduce try/catch at least in every entry point of your code, like event handlers. Or maybe some other solution exists which I don't know about. In any case, you cannot use the straightforward approach of using Appdomain.FirstChanceException.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM