There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Incorporate tracing for diagnostics
When bug reports come in, it will be helpful to have tracing implemented throughout the add-in to help track down issues.
Add tracing using the built-in System.Diagnostics classes. All top-level items should catch all exceptions, trace, and then re-throw, like below (approximation).
Additionally, any major action in the program flow should be traced at a higher trace level.
// do something
catch (Exception ex)