[Mono-list] Trace output to console

Gonzalo Paniagua Javier gonzalo@ximian.com
15 Jan 2003 23:31:54 +0100

El mié, 15-01-2003 a las 20:49, J. Perkins escribió:
> Just wondering: the MS/.NET default TraceListener sends it's output to
> the IDE "Output" window in debug builds. I have found this behavior to
> be handy. Mono could do something similar by writing to the console.
> Would there be any drawbacks/objections to this? I'd prefer not to add
> Mono specific code to my projects (installing a debug TraceListener),
> even if it is just for debug builds; I would rather see it in Mono
> proper. But maybe there is a good reason to not do that.

Mono already does this under windows. WriteDebugString (Trace.cs) ends
up calling OutputDebugStringW (from kernel32.dll).