converting Trace to use AttachingConnector
Hi, i am trying to convert Trace.java to use AttachingConnector.
The problem i am having is in the method redirectOutput, vm.precess() only returns a Process if LaunchingConnector was used.
how can i convert redirectOutput method to work with AttachingConnector?
thanks
wasiq
[306 byte] By [
whasan99a] at [2007-9-29 10:42:02]

> The problem i am having is in the method
> redirectOutput, vm.precess() only returns a Process if
> LaunchingConnector was used.
That is correct. The launching connector can access
the streams on the child process because it just created
the child and has full access to the Process object.
When attaching, the victim process already exists. It
could even be on some other part of the network. There
is no way in the current JPDA to access or redirect the
streams in this case.
This is the topic of Bug ID 4641616
Synopsis: JDWP: Need a way to send output and error streams to debugger
http://developer.java.sun.com/developer/bugParade/bugs/4362594.html