Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » controlling Input / Output Stream of DebugTarget
controlling Input / Output Stream of DebugTarget [message #197588] Thu, 19 February 2004 10:03 Go to next message
Eclipse UserFriend
Originally posted by: kneipe.gmx.de

Hi there,

in programming a small debugging tool I followed the implementation of the
JDT: LaunchConfigurationDelegate --> create the process --> create a new
DebugTarget.

Everthing works fine: I can start the given process and the output appears
in the console.

The problem is, the debugging information comes from the program itself
and is written on standard output and thus displayed in the console. I
need to find a way to intercept this to filter the output. Any idea where
to step in?

Thanx a lot,
Tobias
Re: controlling Input / Output Stream of DebugTarget [message #197703 is a reply to message #197588] Thu, 19 February 2004 14:07 Go to previous message
Darin Wright is currently offline Darin WrightFriend
Messages: 454
Registered: July 2009
Senior Member
A process has an IStreamsProxy that the debug plug-in uses to read output
from a process. You can create your own implementation of an IProcess that
provides a special IStreamsProxy with the filtered output. You should be
able to intercept the output here.

Darin

"Tobias Kneiphoff" <kneipe@gmx.de> wrote in message
news:c121l4$a1p$1@eclipse.org...
> Hi there,
>
> in programming a small debugging tool I followed the implementation of the
> JDT: LaunchConfigurationDelegate --> create the process --> create a new
> DebugTarget.
>
> Everthing works fine: I can start the given process and the output appears
> in the console.
>
> The problem is, the debugging information comes from the program itself
> and is written on standard output and thus displayed in the console. I
> need to find a way to intercept this to filter the output. Any idea where
> to step in?
>
> Thanx a lot,
> Tobias
>
Previous Topic:Creating new filters
Next Topic:RCP enable keyboard accelerators
Goto Forum:
  


Current Time: Sun Sep 08 05:20:56 GMT 2024

Powered by FUDForum. Page generated in 0.02980 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top