mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +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: 821d61d33267f5176594f381198f58100a332cdd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c7d845904e
commit
3d443e22b3
@@ -106,6 +106,13 @@ public class GenericDebuggerRunner implements JvmPatchableProgramRunner<GenericD
|
|||||||
|
|
||||||
protected @Nullable RunContentDescriptor createContentDescriptor(@NotNull RunProfileState state,
|
protected @Nullable RunContentDescriptor createContentDescriptor(@NotNull RunProfileState state,
|
||||||
@NotNull ExecutionEnvironment environment) throws ExecutionException {
|
@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) {
|
if (state instanceof JavaCommandLine) {
|
||||||
JavaParameters parameters = ((JavaCommandLine)state).getJavaParameters();
|
JavaParameters parameters = ((JavaCommandLine)state).getJavaParameters();
|
||||||
boolean isPollConnection = true;
|
boolean isPollConnection = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user