hitting Run should restart the sketch, even when debugging (fixes #3623)

This commit is contained in:
Ben Fry
2015-08-15 12:40:27 -04:00
parent b2902f4316
commit 5937dc091f

View File

@@ -1142,6 +1142,11 @@ public class JavaEditor extends Editor {
public void handleRun() {
if (isDebuggerEnabled()) {
// Hitting Run while a sketch is running should restart the sketch
// https://github.com/processing/processing/issues/3623
if (debugger.isStarted()) {
debugger.stopDebug();
}
// Don't start the sketch paused, continue until a breakpoint or error
// https://github.com/processing/processing/issues/3096
debugger.continueDebug();