[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: debugger state
|
Perhaps a little background on this:
A launch (implements ILaunch) is what appears on the debug and/or processes view
when you launch a program. It's children are all the processes that are launched
in response to the user pressing the run or debug button. The purpose of this is
to group any processes that are used when launching or debugging a program. The
immediate example is debugging the J9 VM. It needs a proxy process that
translates between the VM debugger protocol and the JDWP that the Eclipse
debugger speaks (yeah, I know that's not the whole story).
just in case you wondered.
Thomas
Jed Anderson wrote:
> > What is the best way to find out the state of a java process running under
> > debugger?
> > I would like to know how many processes running. I also would like to be
> > notified when a particular process is finished.
>
> Ilya,
>
> You will find all of the classes I refer to in this post in the
> org.eclipse.debug.core plugin.
>
> To find out how many processes are running, ask the DebugPlugin for it's
> ILaunchManager. The ILaunchManager can answer questions about the
> current running launches and processes.
>
> To be notified of a process' termination, register a IDebugEventListener
> with the DebugPlugin. You will recieve notification when the IProcess
> is terminated. For a more detailed explanation see the DebugEvent's
> javadoc.
>
> jkca