use of com.sun.jdi.ReferenceType in project gravel by gravel-st.
the class VMRemoteInstance method getMethod.
protected Method getMethod(Class<?> class1, String methodName) {
List<ReferenceType> targetClasses = vm().classesByName(class1.getName());
ReferenceType classRef = targetClasses.get(0);
return classRef.methodsByName(methodName).get(0);
}
use of com.sun.jdi.ReferenceType in project gravel by gravel-st.
the class VMRemoteTarget method trapExceptions.
private void trapExceptions() {
ReferenceType referenceType = vm.classesByName("java.lang.Throwable").get(0);
vm.eventRequestManager().createExceptionRequest(referenceType, true, true).enable();
}
Aggregations