Any API help to run a debug tool in eclipse? [message #170790] |
Mon, 15 December 2003 20:44  |
Eclipse User |
|
|
|
Originally posted by: duan-yonghong.sjtu.edu.cn
Hi, everyone
I am working on develop a tools that can calculate dynamic metrics of a
java software. In my project, I use JDI(java debug interface) to trap events
such as method entry, class prepare. So, I must run a target project using
my own debugger which I have developed using JDI. As I want to make my
project into a plugin, I want it implement functions that when I select a
project in package explorer view, the project will run with my debugger
without more input from user. So, I want to get information about project's
classpath, MainObject(object including main method) and so on. Then run my
plugin using this imformation.
How can I do these? Is there any class in eclipse API can help me?
Thank you for your help!
Duanyh
SJTU
|
|
|
Re: Any API help to run a debug tool in eclipse? [message #171002 is a reply to message #170790] |
Tue, 16 December 2003 09:19  |
Eclipse User |
|
|
|
The Java Debugger has a way to compute a default runtime classpath for a
Java project. See JavaRuntime.computeDefaultRuntimeClasspath(IJavaProject).
Darin
"duanyh" <duan-yonghong@sjtu.edu.cn> wrote in message
news:brlo11$r3$2@eclipse.org...
> Hi, everyone
> I am working on develop a tools that can calculate dynamic metrics of a
> java software. In my project, I use JDI(java debug interface) to trap
events
> such as method entry, class prepare. So, I must run a target project using
> my own debugger which I have developed using JDI. As I want to make my
> project into a plugin, I want it implement functions that when I select a
> project in package explorer view, the project will run with my debugger
> without more input from user. So, I want to get information about
project's
> classpath, MainObject(object including main method) and so on. Then run my
> plugin using this imformation.
> How can I do these? Is there any class in eclipse API can help me?
> Thank you for your help!
>
> Duanyh
> SJTU
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03475 seconds