Appendix B. Tracing and Debugging in .NET

Complicated applications cannot be put under the debugger to find out what went wrong. Duplicating or even understanding what conditions are needed to replicate the problem is often difficult. The System.Diagnostics namespace has several classes that help you instrument your application.[1]

[1] The security of your Web site or Web service is enhanced by using tracing and debugging output. You do not want to give out information in an error message that could be used to compromise your system. Capturing that information in a trace or debug log allows the program to generate a generic error message for the user. You could also assign an identifier to the user message that is also recorded with the log message. ...

Get Application Development Using Visual Basic® and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.