IDEA-183664 Debugger does not start anymore

This commit is contained in:
Egor Ushakov
2018-01-09 13:29:24 +03:00
parent ea70b60884
commit bc8a70fd19
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.intellij.debugger.engine;
@@ -472,7 +472,7 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
}
try {
String listeningAddress = connector.startListening(myArguments);
String port = StringUtil.substringAfter(listeningAddress, ":");
String port = StringUtil.substringAfterLast(listeningAddress, ":");
if (port != null) {
listeningAddress = port;
}