JDB command equivalent using com.sun.jdi classes

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

[445 byte] By [anil.samuela] at [2007-11-27 11:37:39]
# 1

Set breakpoint using createBreakpointRequest().

See:

http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/com/sun/jdi/request/EventRequestManager.html#createBreakpointRequest(com.sun.jdi.Location)

When it hits the breakpoint BreakpointEvent will be posted.

See:

http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/com/sun/jdi/event/BreakpointEvent.html

Hope this helps.

swamyva at 2007-7-29 17:15:43 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...