[M10 Fixes] - remote debug flag fix (#494)

(cherry picked from commit bf90b14)
This commit is contained in:
Patrick Kuo 2017-04-03 16:16:31 +01:00
parent 51c7f6ca30
commit b0bb7cc606

View File

@ -26,7 +26,7 @@ object ProcessUtilities {
val separator = System.getProperty("file.separator")
val classpath = System.getProperty("java.class.path")
val javaPath = System.getProperty("java.home") + separator + "bin" + separator + "java"
val debugPortArgument = if (jdwpPort == null) {
val debugPortArgument = if (jdwpPort != null) {
listOf("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$jdwpPort")
} else {
emptyList()