This content has been marked as final. Show 3 replies
Set breakpoint using createBreakpointRequest().
When it hits the breakpoint BreakpointEvent will be posted.
Hope this helps.
To createBreakpointRequest, a 'Location' is needed ?
How to translate the line number of the source to a 'Location' ?
First find the ReferenceType corresponding to the class file name by walking through all loaded class(see VirtualMachine . allClasses() method). Then use the locationsOfLine() method of ReferenceType to get the Location.