The TraceDemo Example

Team-Fly    

 
Application Development Using Visual Basic and .NET
By Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Table of Contents
Appendix B.  Tracing and Debugging in .NET


The TraceDemo example illustrates the use of the diagnostic functionality. If you run the example, you will get the following output:

graphics/codeexample.gif
 Trace Listeners:    Default Trace Listeners:    Default    Console.Out Listener    Output File Listener This was compiled with a DEBUG directive! This was compiled with a TRACE directive!                Debug Boolean Switch enabled at startup.                Debug Boolean Switch enabled! Trace Switch Startup Value = Warning           TraceError!           TraceWarning! Trace Listeners:    Console.Out Listener    Output File Listener File output.txt has been created 

Refer to this output in the ensuing discussion. You will also find a file called output.txt on your computer in the directory where this program ran.


Team-Fly    
Top
 


Application Development Using Visual BasicR and .NET
Application Development Using Visual BasicR and .NET
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 190

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net