From: Egor.Ushakov Date: Thu, 3 Sep 2015 16:52:37 +0000 (+0300) Subject: fixed exception in attach detector with shmem transport X-Git-Tag: webstorm/142.4576~10^2~6 X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=commitdiff_plain;h=260e9b2c6af5700728cfda94084a572935f94217 fixed exception in attach detector with shmem transport --- diff --git a/platform/platform-impl/src/com/intellij/internal/DebugAttachDetector.java b/platform/platform-impl/src/com/intellij/internal/DebugAttachDetector.java index fa26c56b806b..b4b78b08974a 100644 --- a/platform/platform-impl/src/com/intellij/internal/DebugAttachDetector.java +++ b/platform/platform-impl/src/com/intellij/internal/DebugAttachDetector.java @@ -42,7 +42,7 @@ public class DebugAttachDetector { if (!ApplicationManagerEx.getApplicationEx().isInternal() || "true".equals(System.getProperty("idea.debug.mode"))) return; for (String argument : ManagementFactory.getRuntimeMXBean().getInputArguments()) { - if (argument.startsWith("-agentlib:jdwp")) { + if (argument.startsWith("-agentlib:jdwp") && argument.contains("transport=dt_socket")) { String[] params = argument.split(","); for (String param : params) { if (param.startsWith("address")) {