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

Enabling Debug and Trace Output

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.

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