From d58912cbdfd9474cc3d60ac3ea0d6c6410ff7c44 Mon Sep 17 00:00:00 2001 From: Delan Azabani Date: Tue, 24 Jun 2025 19:13:50 +1000 Subject: [PATCH] Dummy handler for getAvailableEventBreakpoints in thread actor Co-authored-by: atbrakhi Signed-off-by: Delan Azabani --- components/devtools/actors/thread.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/devtools/actors/thread.rs b/components/devtools/actors/thread.rs index bb4a07ed7e4..95bae851e08 100644 --- a/components/devtools/actors/thread.rs +++ b/components/devtools/actors/thread.rs @@ -93,6 +93,12 @@ pub enum Location { }, } +#[derive(Serialize)] +struct GetAvailableEventBreakpointsReply { + from: String, + value: Vec<()>, +} + impl Actor for ThreadActor { fn name(&self) -> String { self.name.clone() @@ -160,6 +166,18 @@ impl Actor for ThreadActor { let _ = stream.write_json_packet(&msg); ActorMessageStatus::Processed }, + + // Client wants to know what Event Listener Breakpoints are available for this thread. + "getAvailableEventBreakpoints" => { + let msg = GetAvailableEventBreakpointsReply { + from: self.name(), + // TODO: populate this. + value: vec![], + }; + let _ = stream.write_json_packet(&msg); + ActorMessageStatus::Processed + }, + _ => ActorMessageStatus::Ignored, }) }