From bc8a70fd195293349668d58785bf00833b5e6a7f Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Tue, 9 Jan 2018 13:21:10 +0300 Subject: [PATCH] IDEA-183664 Debugger does not start anymore --- .../src/com/intellij/debugger/engine/DebugProcessImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessImpl.java b/java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessImpl.java index 216f7746a535..5018baf02473 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessImpl.java @@ -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; }