O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required