[Mono-list] Writing to the debugger?

Paolo Molaro lupus@ximian.com
Wed, 24 Apr 2002 00:17:08 +0200


On 04/19/02 Jonathan Pryor wrote:
> Does Unix/Linux have an equivalent to Windows' OutputDebugStream(). 
> That is, a way to send a message to the attached debugger (if there is
> an attached debugger), and *not* to a console, log file, system logger,
> etc.?

Not yet.

> This would be useful, as the DefaultTraceListener is supposed to do
> this.  (This is so that you can use the DefaultTraceListener without
> introducing additional output on the console.)  Currently, it sends all
> output to the console, which is undesirable.  I'd prefer to fix it, but
> I'm not aware of the correct way to do that.
> 
> It seems like it would be possible for the debugged process to send a
> signal + data to any attached debugger, but I'm not aware of any signal
> that could be used in this fashion.

We need to define a debugging interface that an external process can
use (or that can be used also in-process). I have looked a bit at the
debug interface provided by the ms clr while doing the profiler
interface in mono, but more research (and code!) is needed...

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better