mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
IDEA-372324 Unable to open debugger port (*:63992): java.net.ConnectException "Connection refused: connect"
add support for RemoteConnectionCreator but not JavaCommandLine Reviewed-by: IJ-CR-162655 (cherry picked from commit a05f60aec330697f6ca370ef9370ea96d4dfc16b) GitOrigin-RevId: 6c72595da150a4c89bc083d4191c4e9ff344fb65
This commit is contained in:
committed by
intellij-monorepo-bot
parent
162864e22c
commit
bf12f7bb34
@@ -106,6 +106,13 @@ public class GenericDebuggerRunner implements JvmPatchableProgramRunner<GenericD
|
||||
|
||||
protected @Nullable RunContentDescriptor createContentDescriptor(@NotNull RunProfileState state,
|
||||
@NotNull ExecutionEnvironment environment) throws ExecutionException {
|
||||
if (state instanceof RemoteConnectionCreator) {
|
||||
RemoteConnection connection = ((RemoteConnectionCreator)state).createRemoteConnection(environment);
|
||||
boolean isPollConnection = ((RemoteConnectionCreator)state).isPollConnection();
|
||||
if (connection != null) {
|
||||
return attachVirtualMachine(state, environment, connection, isPollConnection);
|
||||
}
|
||||
}
|
||||
if (state instanceof JavaCommandLine) {
|
||||
JavaParameters parameters = ((JavaCommandLine)state).getJavaParameters();
|
||||
boolean isPollConnection = true;
|
||||
|
||||
Reference in New Issue
Block a user