private void disableEventRequest() { List<BreakpointRequest> breakpoint = threadRef.virtualMachine().eventRequestManager().breakpointRequests(); for (int j = 0; j < breakpoint.size(); j++) { BreakpointRequest breakpointRequest = breakpoint.get(j); breakpointRequest.setEnabled(false); } }
private void enableEventRequest() { List<BreakpointRequest> breakpoint = threadRef.virtualMachine().eventRequestManager().breakpointRequests(); for (int j = 0; j < breakpoint.size(); j++) { BreakpointRequest breakpointRequest = breakpoint.get(j); breakpointRequest.setEnabled(true); } }
private void processBreakPointEvents(BreakpointEvent breakpointEvent) throws IncompatibleThreadStateException { if (jumpEnabled) { breakpointJump.setEnabled(false); jumpEnabled = false; breakpointSuspicious.setEnabled(true); return;
private void processClassPrepareEvent() throws AbsentInformationException { EventRequestManager erm = vm.eventRequestManager(); List<ReferenceType> referenceTypes = vm.classesByName(this.location.getContainingClassName()); List listOfLocations = referenceTypes.get(0).locationsOfLine(this.location.getLineNumber()); if (listOfLocations.size() == 0) { throw new RuntimeException("Buggy class not found " + this.location); } com.sun.jdi.Location jdiLocation = (com.sun.jdi.Location) listOfLocations.get(0); this.buggyMethod = jdiLocation.method().name(); breakpointSuspicious = erm.createBreakpointRequest(jdiLocation); breakpointSuspicious.setEnabled(true); initSpoon(); this.initExecutionTime = System.currentTimeMillis(); }
private void processClassPrepareEvent() throws AbsentInformationException { EventRequestManager erm = vm.eventRequestManager(); List<ReferenceType> referenceTypes = vm.classesByName(this.location.getContainingClassName()); // List listOfLocations = // referenceTypes.get(0).locationsOfLine(this.location.getLineNumber()); int loc = this.location.getLineNumber(); List listOfLocations = null; do { listOfLocations = referenceTypes.get(0).locationsOfLine(loc); loc--; } while (loc > 0 && listOfLocations.isEmpty()); if (listOfLocations.size() == 0) { throw new RuntimeException("Buggy class not found " + this.location); } com.sun.jdi.Location jdiLocation = (com.sun.jdi.Location) listOfLocations.get(0); this.buggyMethod = jdiLocation.method().name(); breakpointSuspicious = erm.createBreakpointRequest(jdiLocation); breakpointSuspicious.setEnabled(true); initSpoon(); this.initExecutionTime = System.currentTimeMillis(); }
private void processBreakPointEvents(BreakpointEvent breakpointEvent) throws IncompatibleThreadStateException { if (jumpEnabled) { breakpointJump.setEnabled(false); jumpEnabled = false; breakpointSuspicious.setEnabled(true); return;
breakpointJump.setEnabled(true); jumpEnabled = true; breakpointSuspicious.setEnabled(false); return; } catch (AbsentInformationException e) {
breakpointJump.setEnabled(true); jumpEnabled = true; breakpointSuspicious.setEnabled(false); return; } catch (AbsentInformationException e) {
req.setEnabled( false ); req.setEnabled( breakpoint.isActive() );
BreakpointRequest req = erm.createBreakpointRequest( locations.get( 0 ) ); req.putProperty( TEMPORARY, bp.isTemporary() ); req.setEnabled( bp.isActive() && (bp.isActiveWhenMuted() || !_bpm.isMuted()) );
request.setEnabled(true); } catch (NativeMethodException | IllegalThreadStateException | InvalidRequestStateException e) { throw new DebuggerException(e.getMessage(), e);