Chapter 8. Tools for troubleshooting and logging

 

This chapter covers

  • Logging features in SharePoint
  • Error and exception handling
  • Debugging
  • The Developer Dashboard
  • Troubleshooting tools

In all projects, you’ll eventually have to perform some sort of troubleshooting. Depending on your support personnel’s troubleshooting skills and how the application is built, problems can be fixed before your users even notice them. Normally, a problem starts when a user receives an error and can’t resolve it. The user then reports the error and the problem escalates to your support team. If the error can’t be resolved by the support team, the troubleshooting will fall back on your developers or application management team. Without proper information from your support team, you’ll have a hard time reproducing the incident. Building Web Parts that correctly handle errors and unexpected situations allows you to more quickly resolve any issues—hopefully the support team will even be able to resolve it before it ends up on your desk.

8.1. Logging and error handling in SharePoint 2010

8.2. Debugging Web Parts with Visual Studio 2010

8.3. The Developer Dashboard

8.4. Custom error handling

8.5. Other debugging tools

8.6. Summary