Skip to content

Commit e2269f8

Browse files
committed
* Fix a VM resume bug.
1 parent b2ee6b4 commit e2269f8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import org.javacs.ktda.core.launch.AttachConfiguration
3232
import org.javacs.ktda.core.breakpoint.ExceptionBreakpoint
3333
import org.javacs.ktda.classpath.debugClassPathResolver
3434
import org.javacs.ktda.classpath.findValidKtFilePath
35+
import org.javacs.ktda.jdi.JDIDebuggee
3536

3637
/** The debug server interface conforming to the Debug Adapter Protocol */
3738
class KotlinDebugAdapter(
@@ -270,6 +271,7 @@ class KotlinDebugAdapter(
270271
exceptionsPool.clear()
271272
converter.variablesPool.clear()
272273
converter.stackFramePool.removeAllOwnedBy(args.threadId)
274+
(debuggee as JDIDebuggee).resumeVm()
273275
}
274276
ContinueResponse().apply {
275277
allThreadsContinued = false

adapter/src/main/kotlin/org/javacs/ktda/jdi/JDIDebuggee.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ class JDIDebuggee(
127127
}
128128
return request != null
129129
}
130+
131+
open fun resumeVm() {
132+
vm.resume()
133+
}
130134

131135
override fun exit() {
132136
LOG.info("Exiting JDI session")

0 commit comments

Comments
 (0)