mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user