We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 448cc03 commit 94e3dcfCopy full SHA for 94e3dcf
adapter/src/main/kotlin/org/javacs/ktda/jdi/launch/JDILauncher.kt
@@ -70,7 +70,7 @@ class JDILauncher(
70
}
71
72
private fun createAttachConnector(): AttachingConnector = vmManager.attachingConnectors()
73
- .first { it.name().equals("com.sun.jdi.SocketAttach") }
+ .let { it.find { it.name().equals("com.sun.jdi.SocketAttach") } ?: it.firstOrNull() }
74
?: throw KotlinDAException("Could not find an attaching connector (for a new debuggee VM)")
75
76
private fun createLaunchConnector(): LaunchingConnector = vmManager.launchingConnectors()
0 commit comments