Enabling Debug and Trace Output

for RuBoard

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. These constants can be set in the Visual Studio.NET Project Properties Configuration Properties Build Window's conditional compilation constants shown in Figure 13-1.

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

graphics/13fig01.gif

You can also define the constants in your source files or supply the definition to the compiler's command line.

for RuBoard


Application Development Using C# and .NET
Application Development Using C# and .NET
ISBN: 013093383X
EAN: 2147483647
Year: 2001
Pages: 158

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