[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: debugger state

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