Chapter 21. Tracing — Instrumenting a Plug-In

Good exception handling and error reporting are critical for the serviceability of your plug-in. In addition, you might also want to instrument your plug-in with optional debugging code that can help you localize plug-in problems in the field. You will want to selectively turn on or off this debugging code. Therefore, in this chapter we will instrument our plug-in using the Eclipse trace facility.

Auto-testing is tightly integrated into the builder and is almost fully transparent to the user. How do we react to a customer problem report indicating that not all of their tests are automatically run? We would like to be able to ask the user for more information. To prepare our code for such a question, ...

Get Contributing to Eclipse: Principles, Patterns, and Plug-Ins now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.