File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
adapter/src/main/kotlin/org/javacs/ktda Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,8 @@ class KotlinDebugAdapter(
271
271
exceptionsPool.clear()
272
272
converter.variablesPool.clear()
273
273
converter.stackFramePool.removeAllOwnedBy(args.threadId)
274
- (debuggee as JDIDebuggee ).resumeVm()
274
+ // See the issue: https://github.com/fwcd/kotlin-debug-adapter/pull/40
275
+ debuggee?.resumeVm()
275
276
}
276
277
ContinueResponse ().apply {
277
278
allThreadsContinued = false
@@ -354,6 +355,7 @@ class KotlinDebugAdapter(
354
355
override fun source (args : SourceArguments ): CompletableFuture <SourceResponse > = notImplementedDAPMethod()
355
356
356
357
override fun threads () = async.compute { onceDebuggeeIsPresent { debuggee ->
358
+ debuggee.updateThreads()
357
359
ThreadsResponse ().apply {
358
360
threads = debuggee.threads
359
361
.asSequence()
Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ interface Debuggee {
17
17
get() = null
18
18
19
19
fun exit ()
20
-
20
+
21
+ fun resumeVm ()
22
+
23
+ fun updateThreads ()
24
+
21
25
fun threadByID (id : Long ): DebuggeeThread ? = threads
22
26
.asSequence()
23
27
.filter { it.id == id }
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class JDIDebuggee(
54
54
hookBreakpoints()
55
55
}
56
56
57
- private fun updateThreads () = threads.setAll(vm.allThreads().map { JDIThread (it, this ) })
57
+ override fun updateThreads () = threads.setAll(vm.allThreads().map { JDIThread (it, this ) })
58
58
59
59
private fun hookBreakpoints () {
60
60
context.breakpointManager.also { manager ->
@@ -134,7 +134,7 @@ class JDIDebuggee(
134
134
}
135
135
}
136
136
137
- fun resumeVm () {
137
+ override fun resumeVm () {
138
138
vm.resume()
139
139
}
140
140
You can’t perform that action at this time.
0 commit comments