//deshabilitar evento
/*event.request().disable();
vm.eventRequestManager().deleteEventRequest(event.request());
*/
ReferenceType rt = cpe.referenceType();
//inspeccion method entry y method exit
//primero se ejecuta el breakpoint
if(traceFilter.isTraceMethods())
{
for(Method method : rt.methods())
{
if(method.location()!=null)
{
BreakpointRequest br = vm.eventRequestManager().createBreakpointRequest(method.location());
br.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
br.putProperty("START", true);
br.setEnabled(true);
}
/*
for(int i=1; i<method.allLineLocations().size(); i++)
{
br = vm.eventRequestManager().createBreakpointRequest(method.allLineLocations().get(i));
br.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
br.putProperty("START", false);
br.setEnabled(true);
}*/
}
}
//inspeccion de acceso y modificacionde atributos
if(traceFilter.isTraceFields())
{
for(Field field : rt.fields())
{
AccessWatchpointRequest awr = vm.eventRequestManager().createAccessWatchpointRequest(field);
awr.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
awr.setEnabled(true);