Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » controlling Input / Output Stream of DebugTarget
controlling Input / Output Stream of DebugTarget [message #197588] Thu, 19 February 2004 05: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 09:07 Go to previous message
Eclipse UserFriend
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: Sat May 10 20:55:55 EDT 2025

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

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

Back to the top