[Mono-list] Diagnostic Messages

Lawrence Pit loz@cable.a2000.nl
Sun, 26 May 2002 10:03:47 +0300


Hi Jonathan,

> My current idea for "more functional" is that we add a new argument to
> mono/mint:
>
> --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.

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.



Greets,
Lawrence