Skip to content

Commit

Permalink
hitting Run should restart the sketch, even when debugging (fixes pro…
Browse files Browse the repository at this point in the history
  • Loading branch information
benfry authored and gohai committed Aug 15, 2015
1 parent 6374d3b commit 4b10b19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions java/src/processing/mode/java/JavaEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,11 @@ protected boolean handleExportCheckModified() {

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();
Expand Down

0 comments on commit 4b10b19

Please sign in to comment.