1
Vote

Incorporate tracing for diagnostics

description

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.
 
try
{
// do something
}
catch (Exception ex)
{
Trace.Error(ex);
throw;
}

comments