reorder params

This commit is contained in:
Eugene Zhuravlev
2013-10-28 20:09:19 +01:00
parent 5c6eedd9d0
commit a75754d5b1
@@ -25,8 +25,8 @@ public class RemoteConnection {
private boolean myServerMode;
private String myHostName;
private String myAddress;
@NonNls public static final String ONTHROW = ",onthrow=<FQ exception class name>";
@NonNls public static final String ONUNCAUGHT = ",onuncaught=<y/n>";
public static final String ONTHROW = ",onthrow=<FQ exception class name>";
public static final String ONUNCAUGHT = ",onuncaught=<y/n>";
public RemoteConnection(boolean useSockets, String hostName, String address, boolean serverMode) {
myUseSockets = useSockets;
@@ -77,8 +77,7 @@ public class RemoteConnection {
if (shmem) {
if (serverMode) {
result = "-Xdebug -Xrunjdwp:transport=dt_shmem,server=n,address=" +
((address.length() > 0)? address : "...") +
ONTHROW + ",suspend=y" + ONUNCAUGHT;
((address.length() > 0)? address : "...") + ",suspend=y" + ONTHROW + ONUNCAUGHT;
}
else {
result = "-Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=" +
@@ -104,8 +103,7 @@ public class RemoteConnection {
catch (UnknownHostException e) {
}
result = "-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=" + localHostName +
((p == -1)? "<port>" : Integer.toString(p)) +
ONTHROW + ",suspend=y" + ONUNCAUGHT;
((p == -1)? "<port>" : Integer.toString(p)) + ",suspend=y" + ONTHROW + ONUNCAUGHT;
}
else {
result = "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=" +