fwcd / kotlin-debug-adapter

Kotlin/JVM debugging for any editor/IDE using the Debug Adapter Protocol
MIT License
110 stars 19 forks source link

Attaching to remote debugger causes exception upon breakpoint #50

Open timbob2000 opened 3 years ago

timbob2000 commented 3 years ago

Please file the issue here: https://github.com/fwcd/kotlin-debug-adapter/issues

Description:

When using the remote debugger, attaching to an existing gradle run task, an exception ocurres when attempting to stop on a breakpoint.

./gradlew run --debug-jvm

and the following launch config:

{ "type": "kotlin", "hostName": "localhost", "port": 5005, "timeout": 30000, "request": "attach", "name": "Attach to remote debugger", "projectRoot": "${workspaceFolder}", }

Exception:

Caused by: com.sun.jdi.AbsentInformationException at jdk.jdi/com.sun.tools.jdi.StratumLineInfo.liSourcePath(StratumLineInfo.java:61) at jdk.jdi/com.sun.tools.jdi.LocationImpl.sourcePath(LocationImpl.java:201) at jdk.jdi/com.sun.tools.jdi.LocationImpl.sourcePath(LocationImpl.java:191) at org.javacs.ktda.jdi.JDIDebuggee.sourceOf(JDIDebuggee.kt:167) at org.javacs.ktda.jdi.JDIDebuggee.positionOf(JDIDebuggee.kt:163) at org.javacs.ktda.jdi.stack.JDIStackFrame.(JDIStackFrame.kt:19) at org.javacs.ktda.jdi.stack.JDIStackTrace.(JDIStackTrace.kt:11) at org.javacs.ktda.jdi.JDIThread.stackTrace(JDIThread.kt:35) at org.javacs.ktda.jdi.JDIThread.stackTrace(JDIThread.kt:14) at org.javacs.ktda.adapter.KotlinDebugAdapter.stackTrace(KotlinDebugAdapter.kt:341) ... 16 more

JDK: Open JDK 11 Kotlin Version: 1.3.70

pF-luis commented 1 year ago

Are there any news to this, got the same issue