mirror of
https://github.com/processing/processing4.git
synced 2026-02-16 03:45:40 +01:00
Do not wait for debugger to start running sketch
By default, the java VM is started with options for attaching a remote debugger. The sketch is suspended until the remote debugger connects. This always succeeds the first time a sketch is run. At least on OS X 10.9, this seems to be very fragile, and successive runs of the sketch often fail to start. This commit tells the VM to *not* wait for the debugger before starting the sketch. Fixes processing#2402
This commit is contained in:
@@ -133,7 +133,7 @@ public class Runner implements MessageConsumer {
|
||||
// String jdwpArg = "-Xrunjdwp:transport=dt_socket,address=" + portStr + ",server=y,suspend=y";
|
||||
// String debugArg = "-Xdebug";
|
||||
// Newer (Java 1.5+) version that uses JVMTI
|
||||
String jdwpArg = "-agentlib:jdwp=transport=dt_socket,address=" + portStr + ",server=y,suspend=y";
|
||||
String jdwpArg = "-agentlib:jdwp=transport=dt_socket,address=" + portStr + ",server=y,suspend=n";
|
||||
|
||||
// Everyone works the same under Java 7 (also on OS X)
|
||||
String[] commandArgs = new String[] { Base.getJavaPath(), jdwpArg };
|
||||
|
||||
Reference in New Issue
Block a user