[Mono-list] Diagnostic Messages

Miguel de Icaza miguel@ximian.com
26 May 2002 13:02:58 -0400


Hello!

> > --diagnostics=[trace | debug | all]
> 
> The debug switch shouldn't be on mono/mint, but on mcs instead.
> A tracing switch should be on both mono/mint and mcs.

This is very interesting.  I did not know about this feature.

> By default mcs shouldn't emit code for calls to methods Assert, Fail,
> Indent, Unindent and the various Write methods on both the Debug and Trace
> classes. The Debug methods should only be emitted into IL code when you add
> #define DEBUG to your sourcecode or provide the --define DEBUG switch to
> mcs. Similarly, the Trace methods should only be emitted into IL code when
> you add #define TRACE to your sourcecode or provide the --define TRACE
> switch to mcs. When tracing methods are called from the IL code, by default
> they'll show their output. Via the application configuration file you can
> set the trace level or disable tracing completely.

Where can I find these details?  I am very interested in implementing
these features.

Miguel