[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: com.sun.jdi.Location from org.eclipse.debug.core.model.IBreakpoint

I got around this by

1. monitoring the vm eventqueue and handling the ClassPrepareEvent to get the Locations of the class
2. creating and enabling breakpoint selectively on these Locations.


Thanks Darin and jim.holmlund at sun.com &
http://forum.java.sun.com/thread.jspa?threadID=646407&messageID=3807067

Anthos
Darin Wright wrote:
Get the EventRequestManager from the VirtualMachine. Create a BreakpointRequest from the event request manager at the desired Location. See the Javadoc for JDI for more details.

    http://java.sun.com/j2se/1.4.2/docs/guide/jpda/jdi/index.html

Darin Wright

"Anil T Samuel" <anil.samuel@xxxxxxxxxx> wrote in message news:f86hi0$89v$1@xxxxxxxxxxxxxxxxxxxx
Using jdb I am able to stop by "stop at $Oracle.Procedure.DTP.PROCEDURE1:5" as seen below

main[1] stop at $Oracle.Procedure.DTP.PROCEDURE1:5
Set breakpoint $Oracle.Procedure.DTP.PROCEDURE1:5
main[1] cont
Breakpoint hit: "thread=main", $Oracle.Procedure.DTP.PROCEDURE1.PROCEDURE1(), line=5 bci=5


what will be the equivalent of this using com.sun.jdi.VirtualMachine ?

Regards
Anthos
Darin Wright wrote:
Nope. We don't expose the JDI implementation in the Java debugger. If you look at the Java debugger's implementation of breakpoints, it has to do various things to translate an IBreakpoint into a location (depeding if the desired class is loaded in the target VM yet (you can only get locations for loaded classes)).

Darin Wright.

"Anil T Samuel" <anil.samuel@xxxxxxxxxx> wrote in message news:f7n0dn$1le$1@xxxxxxxxxxxxxxxxxxxx
Hi

I am trying to create a breakpoint, IBreakpoint, in a remote vm using
EventRequestManager.createBreakpointRequest(Location location). Is there any helper method or api to create a Location from a IBreakpoint ?


Regards
Anthos