- The Debug and Trace classes are two of the primary tools developers can use to examine the execution of their applications while they run.
- The Write, WriteLine, WriteIf, and WriteLineIf methods all can be used to send output to attached listener objects.
- The Assert method of the Debug and Trace classes is one mechanism to test a condition of your code and receive feedback based on that evaluation.
- Listener objects are used as receptacles for Debug and Trace information.
- If no listener object is specified, the DefaultTraceListener is used.
- The XmlTraceListener can be used to output detailed information in XML format.
- The TraceSource class allows the developer to specify information about the source of the trace information
- The TraceSwitch allows the developer to manipulate virtually every aspect of the TraceSource class.
You can use the following questions to test your knowledge of the information in Lesson 2, "Debugging and Tracing." The questions are also available on the companion CD if you prefer to review them in electronic form.
Answers | Answers to these questions and explanations of why each answer choice is right or wrong are located in the "Answers" section at the end of the book. |
You need to ensure that the trace from one logical operation is isolated from that of other operations. How do you accomplish this objective? | ||
To use a specific visualizer object for a given class, which attribute should be used?
|
Answers
Correct Answer: A
| |
Correct Answer: B
|
No comments:
Post a Comment