MCPcopy Index your code
hub / github.com/processing/processing / vmStepEvent

Method vmStepEvent

java/src/processing/mode/java/Debugger.java:642–674  ·  view source on GitHub ↗
(StepEvent se)

Source from the content-addressed store, hash-verified

640
641
642 private void vmStepEvent(StepEvent se) {
643 currentThread = se.thread();
644
645 //printSourceLocation(currentThread);
646 updateVariableInspector(currentThread); // this is already on the EDT
647 final LineID newCurrentLine = locationToLineID(se.location());
648 javax.swing.SwingUtilities.invokeLater(new Runnable() {
649 @Override
650 public void run() {
651 editor.setCurrentLine(newCurrentLine);
652 editor.deactivateStep();
653 editor.deactivateContinue();
654 }
655 });
656
657 // delete the steprequest that triggered this step so new ones can be placed (only one per thread)
658 EventRequestManager mgr = runtime.vm().eventRequestManager();
659 mgr.deleteEventRequest(se.request());
660 requestedStep = null; // mark that there is no step request pending
661 paused = true;
662 editor.statusHalted();
663
664 // disallow stepping into invisible lines
665 if (!locationIsVisible(se.location())) {
666 // TODO: this leads to stepping, should it run on the EDT?
667 javax.swing.SwingUtilities.invokeLater(new Runnable() {
668 @Override
669 public void run() {
670 stepOutIntoViewOrContinue();
671 }
672 });
673 }
674 }
675
676
677 /**

Callers 1

vmEventMethod · 0.95

Calls 6

locationToLineIDMethod · 0.95
locationIsVisibleMethod · 0.95
threadMethod · 0.80
statusHaltedMethod · 0.80
vmMethod · 0.45

Tested by

no test coverage detected