Enabling Debug and Trace Output

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


To use the Debug class, the DEBUG flag must be defined, or else the methods of this class will not be compiled into the executable or library. Similarly, to use the Trace class, the TRACE flag must be defined. This way you can have different diagnostics for release and debug builds. Bring up the project property pages from the menu Project Properties. Choose Build under Configuration Properties. You can then check or uncheck the DEBUG and TRACE conditional compilation constants, as shown in Figure B-1.

Figure A-1. Visual Studio window for setting conditional compilation constants.

graphics/bfig01.jpg


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