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

Method stopDebug

java/src/processing/mode/java/Debugger.java:229–253  ·  view source on GitHub ↗

End debugging session. Stops and disconnects VM. Should produce VMDisconnectEvent.

()

Source from the content-addressed store, hash-verified

227 * VMDisconnectEvent.
228 */
229 public synchronized void stopDebug() {
230 editor.variableInspector().lock();
231 if (runtime != null) {
232 Messages.log("closing runtime");
233
234 for (LineBreakpoint bp : breakpoints) {
235 bp.detach();
236 }
237
238 runtime.close();
239 runtime = null;
240 //build = null;
241 classes.clear();
242 // need to clear highlight here because, VMDisconnectedEvent seems to be unreliable. TODO: likely synchronization problem
243 editor.clearCurrentLine();
244 }
245 stopTrackingLineChanges();
246 started = false;
247
248 editor.deactivateDebug();
249 editor.deactivateContinue();
250 editor.deactivateStep();
251
252 editor.statusEmpty();
253 }
254
255
256 /** Resume paused debugging session. Resumes VM. */

Callers 5

vmEventMethod · 0.95
actionPerformedMethod · 0.80
handleRunMethod · 0.80
handleStopMethod · 0.80
disposeMethod · 0.80

Calls 12

logMethod · 0.95
lockMethod · 0.80
variableInspectorMethod · 0.80
clearCurrentLineMethod · 0.80
deactivateDebugMethod · 0.80
statusEmptyMethod · 0.80
detachMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45
deactivateContinueMethod · 0.45
deactivateStepMethod · 0.45

Tested by

no test coverage detected