devtools: implement clearBreakpoint (#42154)

Add an event listener for `clearBreakpoint` to `debugger.js` and the
necessary glue to access it from the `devtools` crate.

Testing: `./mach test-devtools` and manual testing.
Fixes: Part of: https://github.com/servo/servo/issues/36027

---------

Signed-off-by: atbrakhi <atbrakhi@igalia.com>
Co-authored-by: eri <eri@igalia.com>
This commit is contained in:
atbrakhi
2026-01-27 21:16:54 +05:30
committed by GitHub
parent 33bb35c5da
commit e28a0f6d6c
9 changed files with 174 additions and 8 deletions

View File

@@ -2181,6 +2181,14 @@ impl ScriptThread {
offset,
);
},
DevtoolScriptControlMsg::ClearBreakpoint(spidermonkey_id, script_id, offset) => {
self.debugger_global.fire_clear_breakpoint(
CanGc::from_cx(cx),
spidermonkey_id,
script_id,
offset,
);
},
DevtoolScriptControlMsg::Pause(result_sender) => {
self.debugger_global
.fire_pause(CanGc::from_cx(cx), result_sender);