Home All Groups Group Topic Archive Search About

Writing Own Debug Client

Author
3 Jan 2007 3:17 PM
Michael Slattery
Is there a way in C# to write my own debug client... 

I want run creat an application that captures the Debug.w* messages much
like the output window in visual studio.

Thanks,
Mike

Author
3 Jan 2007 4:01 PM
Torsten Kerz
Michael Slattery schrieb:
> Is there a way in C# to write my own debug client... 
>
> I want run creat an application that captures the Debug.w* messages much
> like the output window in visual studio.
>
> Thanks,
> Mike

Hello Mike.

Remember: this suggestion isn't proofed ... it's just my thought.

As first you will need a class, which inherits
"System.Diagnostics.TraceListener". There are allready some classes of
this type, but i think, you have to write your own implementatiton.

Next you can add a instance of this class to the listeners-collection
with "System.Diagnostics.Debug.Listeners.Add (MyInstance)"

This could do it allready.

Greetings,
Torsten.

AddThis Social Bookmark Button