org.eclipse.jdt.debug.core [API Help] [message #66180] |
Tue, 24 June 2003 10:22  |
Eclipse User |
|
|
|
Originally posted by: bluecoder.elivefree.net
Hello All,
I am writing to get some information on the org.eclipse.jdt.debug.core
API. I cannot find many/any helpful documents on what I want to do so I
have been looking at source code to some plugins as a guide.
I have unsuccessfully tried to use Sun's JDI within an Eclipse plugin,
it won't start a new VM so now I have started to use Eclipse's Debug.Core
API. (if anyone has any pointers on working with JDI or even JVMPI inside
an Eclipse plugin I would be grateful)
With the jdt.debug.core API, I am trying to log every time a method
entry/exit occurs and every time an object is created but I do not know
how to register listeners for such events and how to receive notification
of when these events happen or even if it is possible with eclipse's API.
If you could point me the right direction I would be very grateful.
Thank-you
Regards,
B.C.
|
|
|
Re: org.eclipse.jdt.debug.core [API Help] [message #68928 is a reply to message #66180] |
Fri, 27 June 2003 10:59  |
Eclipse User |
|
|
|
The java debugger does not expose the JDI objects in its API (it is used
internally by the debugger). You can use the JDI implementation shipped with
Eclipse, but if you use it in conjunction with the java debugger APIs, you
are on your own (it's not recommended or supported).
However, the Java debug API supports method breakpoints. You can specify
classname and method name patterns. See
JDIDebugModel.createMethodBreakpoint(...). This may do what you want. Please
note that if you are breaking on every method entry/exit, program execution
will be etremely slow. You can listen to breakpoint events from the java
debugger too. See IJavaBreakpointListener.
Darin
"B.C." <bluecoder@elivefree.net> wrote in message
news:bd9ms2$s7g$1@rogue.oti.com...
> Hello All,
> I am writing to get some information on the org.eclipse.jdt.debug.core
> API. I cannot find many/any helpful documents on what I want to do so I
> have been looking at source code to some plugins as a guide.
>
> I have unsuccessfully tried to use Sun's JDI within an Eclipse plugin,
> it won't start a new VM so now I have started to use Eclipse's Debug.Core
> API. (if anyone has any pointers on working with JDI or even JVMPI inside
> an Eclipse plugin I would be grateful)
>
> With the jdt.debug.core API, I am trying to log every time a method
> entry/exit occurs and every time an object is created but I do not know
> how to register listeners for such events and how to receive notification
> of when these events happen or even if it is possible with eclipse's API.
> If you could point me the right direction I would be very grateful.
> Thank-you
>
> Regards,
> B.C.
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03711 seconds