File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
adapter/src/main/kotlin/org/javacs/ktda/jdi/event Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,8 @@ class VMEventBus(private val vm: VirtualMachine): DebuggeeEventBus {
4040 override val threadListeners = ListenerList <ThreadEvent >()
4141
4242 init {
43- val eventRequestManager = vm.eventRequestManager()
44- eventRequestManager.createThreadStartRequest().enable()
45- eventRequestManager.createThreadDeathRequest().enable()
46-
47- startAsyncPoller()
4843 hookListeners()
44+ startAsyncPoller()
4945 }
5046
5147 private fun startAsyncPoller () {
@@ -81,6 +77,11 @@ class VMEventBus(private val vm: VirtualMachine): DebuggeeEventBus {
8177 }
8278
8379 private fun hookListeners () {
80+ val eventRequestManager = vm.eventRequestManager()
81+ eventRequestManager.createThreadStartRequest().enable()
82+ eventRequestManager.createThreadDeathRequest().enable()
83+ eventRequestManager.createVMDeathRequest().enable()
84+
8485 subscribe(JDIBreakpointEvent ::class ) {
8586 breakpointListeners.fire(BreakpointStopEvent (
8687 threadID = toThreadID(it.jdiEvent)
You can’t perform that action at this time.
0 commit comments