mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
hitting Run should restart the sketch, even when debugging (fixes #3623)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user