AnsweredAssumed Answered

Error handling and logging when developing ArcMap Add-Ins?

Question asked by Fossi on Dec 13, 2012
Latest reply on Dec 13, 2012 by Fossi

1.) Error handling and logging
What's the best practice for error handling when developing ArcMap Add-Ins?

If an unhandled exception occurs, ArcMap just closes und presents an "Please inform ESRI about this problem"-dialog.

Is there any way to change this behaviour to get the originial error message and/or at least some rough hints where the code failed?
Or is there any kind of errorlog, which gives more informations for the developer?

2.) exception handling
What's the recommended way to handle exception? Is there any reluctance about Try..Catch on the most damageable spots?

Any hints or tips appreciated.