Skip to content

Commit c1f12dd

Browse files
committed
Require port to be specified as a string
1 parent 26c655d commit c1f12dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapter/src/main/kotlin/org/javacs/ktda/adapter/KotlinDebugAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class KotlinDebugAdapter(
190190
val hostName = (args["hostName"] as? String)
191191
?: throw missingRequestArgument("attach", "hostName")
192192

193-
val port = (args["port"] as? Int)
193+
val port = (args["port"] as? String)?.toInt()
194194
?: throw missingRequestArgument("attach", "port")
195195

196196
val timeout = (args["timeout"] as? Double)?.toInt()

0 commit comments

Comments
 (0)