[Mono-list] Diagnostic Messages

Lawrence Pit loz@cable.a2000.nl
Sun, 26 May 2002 21:52:29 +0300


> > The debug switch shouldn't be on mono/mint, but on mcs instead.
> > A tracing switch should be on both mono/mint and mcs.
>
> Where can I find these details?  I am very interested in implementing
> these features.

It's in the documentation. See the remarks and notes for classes
System.Diagnostics.ConditionalAttribute,
System.Diagnostics.DefaultTraceListener, System.Diagnostics.Debug and
System.Diagnostics.Trace.

If mcs does not omit the calls to Debug and Trace methods when no #define
DEBUG resp. TRACE have been given then this would impact performance and
code size of the production version of your software, even when runtime you
could switch debugging output off (as the argument would get resolved,
etc.).


Greets,
Lawrence